public class HttpHeaderValueParserKt
Modifier and Type | Method and Description |
---|---|
static java.util.List<io.ktor.http.HeaderValue> |
parseAndSortContentTypeHeader(java.lang.String header)
Parse
Content-Type header values and sort them by quality and asterisks quantity |
static java.util.List<io.ktor.http.HeaderValue> |
parseAndSortHeader(java.lang.String header)
Parse header value and sort multiple values according to qualities
|
static java.util.List<io.ktor.http.HeaderValue> |
parseHeaderValue(java.lang.String text)
Parse header value respecting multi-values
|
static java.util.List<io.ktor.http.HeaderValue> |
parseHeaderValue(java.lang.String text,
boolean parametersOnly)
Parse header value respecting multi-values
|
static java.util.List<io.ktor.http.HeaderValueParam> |
toHeaderParamsList(java.lang.Iterable<kotlin.Pair> $receiver)
Construct a list of
class HeaderValueParam from an iterable of pairs |
public static java.util.List<io.ktor.http.HeaderValue> parseAndSortHeader(java.lang.String header)
Parse header value and sort multiple values according to qualities
public static java.util.List<io.ktor.http.HeaderValue> parseAndSortContentTypeHeader(java.lang.String header)
Parse Content-Type
header values and sort them by quality and asterisks quantity
public static java.util.List<io.ktor.http.HeaderValue> parseHeaderValue(java.lang.String text)
Parse header value respecting multi-values
public static java.util.List<io.ktor.http.HeaderValue> parseHeaderValue(java.lang.String text, boolean parametersOnly)
Parse header value respecting multi-values
parametersOnly
- if no header value itself, only parameterspublic static java.util.List<io.ktor.http.HeaderValueParam> toHeaderParamsList(java.lang.Iterable<kotlin.Pair> $receiver)
Construct a list of class HeaderValueParam
from an iterable of pairs
class HeaderValueParam