Interface UrlRequest


public interface UrlRequest
The details about an URL request.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    An identifier of the UrlRequest instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Browser>
    Returns an Optional that contains the Browser instance initiated this request or an empty Optional if it has not been determined or not available anymore.
    id()
    Returns the identifier of this URL request.
    default String
    Returns a string that represents the request method name.
    default ResourceType
    Returns the type of the resource the request is loading.
    Returns an Optional that contains the SSL connection version used to make this request if it is available and the current request represents an HTTPS request, otherwise an empty Optional.
    default long
    Returns the total amount of data received from network after SSL decoding and proxy handling.
    default long
    Returns the total amount of data sent over the network before SSL encoding and proxy handling.
    default String
    url()
    Returns a string that represents the URL address of this request.
  • Method Details

    • id

      default UrlRequest.Id id()
      Returns the identifier of this URL request.
    • url

      default String url()
      Returns a string that represents the URL address of this request.
    • method

      default String method()
      Returns a string that represents the request method name. For example, "GET", "POST" etc.
    • resourceType

      default ResourceType resourceType()
      Returns the type of the resource the request is loading.
      Since:
      7.11
    • totalBytesReceived

      default long totalBytesReceived()
      Returns the total amount of data received from network after SSL decoding and proxy handling.
      Since:
      7.8
    • totalBytesSent

      default long totalBytesSent()
      Returns the total amount of data sent over the network before SSL encoding and proxy handling.
      Since:
      7.8
    • browser

      default Optional<Browser> browser()
      Returns an Optional that contains the Browser instance initiated this request or an empty Optional if it has not been determined or not available anymore.
      Since:
      7.8
    • sslVersion

      default Optional<SslVersion> sslVersion()
      Returns an Optional that contains the SSL connection version used to make this request if it is available and the current request represents an HTTPS request, otherwise an empty Optional.