pub fn negotiate_error_format(accept: Option<&str>) -> ErrorFormatExpand description
Pick a format: text/html wins over json/problem when both appear without clear exclusivity;
application/problem+json / application/json → problem; else text.
pub fn negotiate_error_format(accept: Option<&str>) -> ErrorFormatPick a format: text/html wins over json/problem when both appear without clear exclusivity;
application/problem+json / application/json → problem; else text.