Skip to main content

format_allow_header

Function format_allow_header 

Source
pub fn format_allow_header(methods: &[Method]) -> String
Expand description

Format an RFC 9110 §10.2.1 Allow header value from router methods, automatically advertising HEAD when GET is allowed, plus OPTIONS.