Used to parse a specific type of content negotiation header.
Retrieves the preferred supported value for the specified content-negotiation header.
Retrieves all supported values of the specified content-negotiation header.
Retrieves all supported values of the specified content-negotiation header.
Note that any value declared in the header but not supported by the system will be absent from the list. For
example, an Accept-Charset
value of utf-256
will yield an empty list.
Additionally, this method swallows errors silently. An invalid header value will yield an empty list rather than an exception.
Defines type classes and helper methods for well known content-negotiation headers.