public static interface UrlRequestJob.Options
UrlRequestJob
.Modifier and Type | Interface and Description |
---|---|
static class |
UrlRequestJob.Options.Builder
A
UrlRequestJob.Options builder. |
Modifier and Type | Method and Description |
---|---|
default java.util.List<HttpHeader> |
httpHeaders()
Returns an immutable list of HTTP headers.
|
default HttpStatus |
httpStatus()
Returns the HTTP status code.
|
static UrlRequestJob.Options.Builder |
newBuilder(UrlRequest.Id urlRequestId,
HttpStatus httpStatus)
Creates a new
UrlRequestJob builder with the given required parameters. |
default UrlRequest.Id |
urlRequestId()
Returns the identifier of the URL request.
|
static UrlRequestJob.Options.Builder newBuilder(UrlRequest.Id urlRequestId, HttpStatus httpStatus)
UrlRequestJob
builder with the given required parameters.urlRequestId
- the identifier of a UrlRequest
instancehttpStatus
- the HTTP status codeUrlRequestJob.Builder
instancedefault UrlRequest.Id urlRequestId()
default HttpStatus httpStatus()
default java.util.List<HttpHeader> httpHeaders()