Function matching_encoding

Source
pub fn matching_encoding(
    resource: &(dyn Resource + Send + Sync),
    request: &WebmachineRequest,
) -> Option<String>
Expand description

Determines if the encodings supported by the resource matches the acceptable encodings provided by the client. Returns the match if there is one.