public static interface ReceiveHeadersCallback.Params
ReceiveHeadersCallback
.Modifier and Type | Method and Description |
---|---|
default java.lang.String |
charset()
Returns a string that represents the charset data in the lower case retrieved from the
Content-Type header. |
default long |
contentLength()
Returns the value of the
Content-Length header. |
default java.util.List<HttpHeader> |
httpHeaders()
Returns an immutable list of the HTTP headers of the request or an empty list if the
request does not have any HTTP headers.
|
default MimeType |
mimeType()
Returns the MIME type value initialized with the lower case string retrieved from the
Content-Type header. |
default int |
responseCode()
Returns the HTTP response code.
|
default java.lang.String |
statusLine()
Returns a string that represents the information about HTTP version, response code and
the status text.
|
default java.lang.String |
statusText()
Returns a string that represents the short textual description of the response code.
|
default UrlRequest |
urlRequest()
Returns the URL request.
|
default UrlRequest urlRequest()
default java.util.List<HttpHeader> httpHeaders()
default long contentLength()
Content-Length
header. The value equals -1 when there is
no such HTTP header in the URL response.default java.lang.String charset()
Content-Type
header. Can be empty if there is no charset data.default MimeType mimeType()
Content-Type
header. Can be empty if there is no MIME type data.default java.lang.String statusLine()
default java.lang.String statusText()
default int responseCode()