Interface InterceptUrlRequestCallback.Params
- Enclosing interface:
- InterceptUrlRequestCallback
public static interface InterceptUrlRequestCallback.Params
The parameters of the
InterceptUrlRequestCallback
.-
Method Summary
Modifier and TypeMethodDescriptionReturns an immutable list of the HTTP headers of the request or an empty list if the request does not have any HTTP headers.newUrlRequestJob
(UrlRequestJob.Options options) Creates and returns a newUrlRequestJob
instance with the givenoptions
.Returns anOptional
that contains the upload data in the request or an emptyOptional
if the request does not have any upload data.Returns the URL request.
-
Method Details
-
urlRequest
UrlRequest urlRequest()Returns the URL request. -
uploadData
Optional<UploadData> uploadData()Returns anOptional
that contains the upload data in the request or an emptyOptional
if the request does not have any upload data. -
httpHeaders
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. -
newUrlRequestJob
Creates and returns a newUrlRequestJob
instance with the givenoptions
.- Throws:
ObjectClosedException
- when the engine is closed
-