Interface ReceiveHeadersCallback.Params
- Enclosing interface:
- ReceiveHeadersCallback
public static interface ReceiveHeadersCallback.Params
The parameters of the
ReceiveHeadersCallback
.-
Method Summary
Modifier and TypeMethodDescriptiondefault String
charset()
Returns a string that represents the charset data in the lower case retrieved from theContent-Type
header.default long
Returns the value of theContent-Length
header.default List<HttpHeader>
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 String
Returns a string that represents a remote endpoint that was used to make the request.default MimeType
mimeType()
Returns the MIME type value initialized with the lower case string retrieved from theContent-Type
header.default int
Returns the HTTP response code.default String
Returns a string that represents the information about HTTP version, response code and the status text.default String
Returns a string that represents the short textual description of the response code.default UrlRequest
Returns the URL request.
-
Method Details
-
urlRequest
Returns the URL request. -
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. -
contentLength
default long contentLength()Returns the value of theContent-Length
header. The value equals -1 when there is no such HTTP header in the URL response. -
charset
Returns a string that represents the charset data in the lower case retrieved from theContent-Type
header. Can be empty if there is no charset data. -
ipAddress
Returns a string that represents a remote endpoint that was used to make the request. It can be empty if the resource pulled from cache. -
mimeType
Returns the MIME type value initialized with the lower case string retrieved from theContent-Type
header. Can be empty if there is no MIME type data. -
statusLine
Returns a string that represents the information about HTTP version, response code and the status text. -
statusText
Returns a string that represents the short textual description of the response code. -
responseCode
default int responseCode()Returns the HTTP response code. This is 0 if the response code text seems to exist, but could not be parsed. Otherwise, it defaults to 200 if the response code is not found in the HTTP headers.
-