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.BodyPublisher bodyPublisher) |
Sets the request method of this builder to DELETE and sets its
request body publisher to the given value.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.expectContinue(boolean enable) |
Requests the server to acknowledge the request before sending the
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.BodyPublisher bodyPublisher) |
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.BodyPublisher bodyPublisher) |
Sets the request method of this builder to POST and sets its
request body publisher to the given value.
|
abstract HttpRequest.Builder |
HttpRequest.Builder.PUT(HttpRequest.BodyPublisher bodyPublisher) |
Sets the request method of this builder to PUT and sets its
request body publisher 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) |
|