Valum.ContentNegotiation
Description:
Content negociation for various headers.
Content:
Functions:
- public HandlerCallback accept (string content_types, owned ForwardCallback<string> forward = forward)
Negotiate a 'Accept' header.
- public HandlerCallback accept_charset (string charsets, owned ForwardCallback<string> forward = forward)
Negotiate a 'Accept-Charset' header.
- public HandlerCallback accept_encoding (string encodings, owned ForwardCallback<string> forward = forward)
Negotiate a 'Accept-Encoding' header.
- public HandlerCallback accept_language (string languages, owned ForwardCallback<string> forward = forward)
Negotiate a 'Accept-Language' header.
- public HandlerCallback accept_ranges (string ranges, owned ForwardCallback<string> forward = forward)
Negotiate a 'Accept-Range' header.
- public HandlerCallback accept_transfer_encoding (string encodings, owned ForwardCallback<string> forward = forward)
Negotiate a 'TE' header.
- public HandlerCallback negotiate (string header_name, string expectations, owned ForwardCallback<string> forward = forward, EqualFunc<string> match = ( EqualFunc < string >) str_case_equal)
Negotiate a HTTP header against a set of expectations.