Preferences for output type.
Media types to compare to the preferences.
Whether there is at least one preference match.
Checks if the given two media types/ranges match each other. Takes wildcards into account.
Media type to match.
Media type to match.
True if the media type patterns can match each other.
Filters media types based on the given preferences.
Based on RFC 7231 - Content negotiation.
Will add a default internal/*;q=0
to the preferences to prevent accidental use of internal types.
Since more specific media ranges override less specific ones,
this will be ignored if there is a specific internal type preference.
This should be called even if there are no preferredTypes since this also filters out internal types.
Preferences for output type.
Media types to compare to the preferences.
The weighted and filtered list of matching types.
Determines whether the given conversion request is supported, given the available content type conversions:
Actual input type.
Acceptable output types.
Media types that can be parsed by the converter.
Media types that can be produced by the converter.
Determines whether any available type satisfies the preferences.
BadRequestHttpError If the type preferences are undefined or if there are duplicate preferences.