-
public final class HttpHeadersHelper to parse HTTP request/response headers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classHttpHeaders.Companion
-
Constructor Summary
Constructors Constructor Description HttpHeaders(Map<String, List<String>> headers)
-
Method Summary
Modifier and Type Method Description final BooleangetAcceptsByteRanges()final LonggetContentLength()final HttpRangegetRange()final Map<String, List<String>>getHeaders()final Stringget(String name)Finds the last header matching the given name. final List<String>getAll(String name)Finds all the headers matching the given name. -
-
Method Detail
-
getAcceptsByteRanges
final Boolean getAcceptsByteRanges()
-
getContentLength
final Long getContentLength()
-
getHeaders
final Map<String, List<String>> getHeaders()
-
get
final String get(String name)
Finds the last header matching the given name. In keeping with the HTTP RFC, HTTP header field names are case-insensitive. The returned string can contain a single value or a comma-separated list of values if the field supports it.
-
-
-
-