Function host [src]

Prototype

pub fn host(c: *Connection) []u8

Parameters

c: *Connection

Source

pub fn host(c: *Connection) []u8 { return switch (c.protocol) { .tls => { if (disable_tls) unreachable; const tls: *Tls = @alignCast(@fieldParentPtr("connection", c)); return tls.host(); }, .plain => { const plain: *Plain = @alignCast(@fieldParentPtr("connection", c)); return plain.host(); }, }; }