abstract HttpRequest.Builder |
HttpRequest.Builder.copy() |
Returns an exact duplicate copy of this Builder based on current
state.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.DELETE(HttpRequest.BodyProcessor body) |
Sets the request method of this builder to DELETE and sets its
request body processor to the given value.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.expectContinue(boolean enable) |
Request server to acknowledge request before sending request
body.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.GET() |
Sets the request method of this builder to GET.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.header(String name,
String value) |
Adds the given name value pair to the set of headers for this request.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.headers(String... headers) |
Adds the given name value pairs to the set of headers for this
request.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.method(String method,
HttpRequest.BodyProcessor body) |
Sets the request method and request body of this builder to the
given values.
|
static HttpRequest.Builder |
HttpRequest.newBuilder() |
Creates a HttpRequest builder.
|
static HttpRequest.Builder |
HttpRequest.newBuilder(URI uri) |
Creates a HttpRequest builder.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.POST(HttpRequest.BodyProcessor body) |
Sets the request method of this builder to POST and sets its
request body processor to the given value.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.PUT(HttpRequest.BodyProcessor body) |
Sets the request method of this builder to PUT and sets its
request body processor to the given value.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.setHeader(String name,
String value) |
Sets the given name value pair to the set of headers for this
request.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.timeout(Duration duration) |
Sets a timeout for this request.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.uri(URI uri) |
Sets this HttpRequest 's request URI .
|
abstract HttpRequest.Builder |
HttpRequest.Builder.version(HttpClient.Version version) |
|