public static interface InterceptUrlRequestCallback.Params
InterceptUrlRequestCallback
.Modifier and Type | Method and Description |
---|---|
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.
|
UrlRequestJob |
newUrlRequestJob(UrlRequestJob.Options options)
Creates and returns a new
UrlRequestJob instance with the given options . |
java.util.Optional<UploadData> |
uploadData()
Returns an
Optional that contains the upload data in the request or an empty
Optional if the request does not have any upload data. |
UrlRequest |
urlRequest()
Returns the URL request.
|
UrlRequest urlRequest()
java.util.Optional<UploadData> uploadData()
Optional
that contains the upload data in the request or an empty
Optional
if the request does not have any upload data.java.util.List<HttpHeader> httpHeaders()
UrlRequestJob newUrlRequestJob(UrlRequestJob.Options options)
UrlRequestJob
instance with the given options
.ObjectClosedException
- when the engine is closed