Skip to main content

host

Function host 

Source
pub fn host(conn: &Conn, _color: bool) -> Cow<'static, str>
Expand description

formatter for the request authority (host), as resolved by Conn::host

This is the host the request was addressed to — drawn from the Host header, the HTTP/2 or HTTP/3 :authority pseudo-header, or an absolute-form request target, depending on protocol. Displays "-" if no host is available.