Interface ReceiveHeadersCallback.Params

Enclosing interface:
ReceiveHeadersCallback

public static interface ReceiveHeadersCallback.Params
The parameters of the ReceiveHeadersCallback.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns a string that represents the charset data in the lower case retrieved from the Content-Type header.
    default long
    Returns the value of the Content-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
    Returns the MIME type value initialized with the lower case string retrieved from the Content-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

      default UrlRequest urlRequest()
      Returns the URL request.
    • httpHeaders

      default 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.
    • contentLength

      default long contentLength()
      Returns the value of the Content-Length header. The value equals -1 when there is no such HTTP header in the URL response.
    • charset

      default String charset()
      Returns a string that represents the charset data in the lower case retrieved from the Content-Type header. Can be empty if there is no charset data.
    • ipAddress

      default String 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

      default MimeType mimeType()
      Returns the MIME type value initialized with the lower case string retrieved from the Content-Type header. Can be empty if there is no MIME type data.
    • statusLine

      default String statusLine()
      Returns a string that represents the information about HTTP version, response code and the status text.
    • statusText

      default String 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.