Uses of Interface
java.net.http.HttpRequest.Builder
Packages that use HttpRequest.Builder
-
Uses of HttpRequest.Builder in java.net.http
Methods in java.net.http that return HttpRequest.BuilderModifier and TypeMethodDescriptionHttpRequest.Builder.copy()
Returns an exact duplicate copy of thisBuilder
based on current state.HttpRequest.Builder.DELETE()
Sets the request method of this builder to DELETE.HttpRequest.Builder.expectContinue
(boolean enable) Requests the server to acknowledge the request before sending the body.HttpRequest.Builder.GET()
Sets the request method of this builder to GET.Adds the given name value pair to the set of headers for this request.Adds the given name value pairs to the set of headers for this request.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 anHttpRequest
builder.static HttpRequest.Builder
HttpRequest.newBuilder
(HttpRequest request, BiPredicate<String, String> filter) Creates aBuilder
whose initial state is copied from an existingHttpRequest
.static HttpRequest.Builder
HttpRequest.newBuilder
(URI uri) Creates anHttpRequest
builder with the given URI.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.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.Sets the given name value pair to the set of headers for this request.Sets a timeout for this request.Sets thisHttpRequest
's requestURI
.HttpRequest.Builder.version
(HttpClient.Version version) Sets the preferredHttpClient.Version
for this request.