Skip to main content

request_accept_language

Function request_accept_language 

Source
pub fn request_accept_language(req: &HttpRequest) -> Option<String>
Expand description

Accept-Language header of the request, for ServerState::request_with_headers.

Several header fields make one list, joined with , (RFC 9110, section 5.3).