Skip to main content

user_agent

Function user_agent 

Source
pub fn user_agent(conn: &Conn, _color: bool) -> String
Expand description

formatter for the request User-Agent header, wrapped in quotes. "" if absent

Equivalent to request_header(KnownHeaderName::UserAgent), provided as a bare formatter so it can be named directly in a format.