vertx / io.vertx.ext.web / ParsedHeaderValues

ParsedHeaderValues

interface ParsedHeaderValues

A container with the request's headers that are meaningful enough to be parsed Contains:

Functions

accept

abstract fun accept(): MutableList<MIMEHeader>

acceptCharset

abstract fun acceptCharset(): MutableList<ParsedHeaderValue>

acceptEncoding

abstract fun acceptEncoding(): MutableList<ParsedHeaderValue>

acceptLanguage

abstract fun acceptLanguage(): MutableList<LanguageHeader>

contentType

abstract fun contentType(): MIMEHeader

findBestUserAcceptedIn

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.