Skip to main content

negotiate_error_format

Function negotiate_error_format 

Source
pub fn negotiate_error_format(accept: Option<&str>) -> ErrorFormat
Expand description

Pick a format: text/html wins over json/problem when both appear without clear exclusivity; application/problem+json / application/json → problem; else text.