Skip to main content

negotiate_request

Function negotiate_request 

Source
pub fn negotiate_request(
    headers: &Headers,
    supported: Option<&[String]>,
) -> Result<String, LinoHttpError>
Expand description

Select the representation to produce for a request.

ยงErrors

A 406 when no supported representation is acceptable, carrying the list of the ones that are.