-
- All Implemented Interfaces:
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 first value of the first header matching the given name. final List<String>getAll(String name)Finds all the values of the first header 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 first value of the first header matching the given name. In keeping with the HTTP RFC, HTTP header field names are case-insensitive.
-
-
-
-