public interface UrlRequest
Modifier and Type | Interface and Description |
---|---|
static interface |
UrlRequest.Id
An identifier of the
UrlRequest instance. |
Modifier and Type | Method and Description |
---|---|
default java.util.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. |
default UrlRequest.Id |
id()
Returns the identifier of this URL request.
|
default java.lang.String |
method()
Returns a string that represents the request method name.
|
default ResourceType |
resourceType()
Returns the type of the resource the request is loading.
|
default java.util.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 . |
default long |
totalBytesReceived()
Returns the total amount of data received from network after SSL decoding and proxy
handling.
|
default long |
totalBytesSent()
Returns the total amount of data sent over the network before SSL encoding and proxy
handling.
|
default java.lang.String |
url()
Returns a string that represents the URL address of this request.
|
default UrlRequest.Id id()
default java.lang.String url()
default java.lang.String method()
default ResourceType resourceType()
default long totalBytesReceived()
default long totalBytesSent()
default java.util.Optional<Browser> browser()
Optional
that contains the Browser
instance initiated this request
or an empty Optional
if it has not been determined or not available anymore.default java.util.Optional<SslVersion> sslVersion()
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
.