FormatHints
data class FormatHints(val mediaTypes: List<MediaType> = emptyList(), val fileExtensions: List<FileExtension> = emptyList())
Bundle of media type and file extension hints for the FormatHintsSniffer.
Constructors
Link copied to clipboard
constructor(mediaTypes: List<MediaType> = emptyList(), fileExtensions: List<FileExtension> = emptyList())
Functions
Link copied to clipboard
Returns a new FormatHints after appending the given fileExtension hint.
Link copied to clipboard
Returns whether this context has any of the given file extensions, ignoring case.
Link copied to clipboard
Returns whether this context has any of the given media type, ignoring case and extra parameters.
Link copied to clipboard