interface ParsedHeaderValues
A container with the request's headers that are meaningful enough to be parsed Contains:
abstract fun accept(): MutableList<MIMEHeader> |
|
abstract fun acceptCharset(): MutableList<ParsedHeaderValue> |
|
abstract fun acceptEncoding(): MutableList<ParsedHeaderValue> |
|
abstract fun acceptLanguage(): MutableList<LanguageHeader> |
|
abstract fun contentType(): MIMEHeader |
|
abstract fun <T : ParsedHeaderValue> findBestUserAcceptedIn(accepted: MutableList<T>, in: MutableCollection<T>): T
Given the sorted list of parsed header values the user has sent and an Iterable of acceptable values: It finds the first accepted header that matches any inside the Iterable. Note: This method is intended for internal usage. |