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 thisBuilderbased 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.BuilderHttpRequest.newBuilder()Creates anHttpRequestbuilder.static HttpRequest.BuilderHttpRequest.newBuilder(HttpRequest request, BiPredicate<String, String> filter) Creates aBuilderwhose initial state is copied from an existingHttpRequest.static HttpRequest.BuilderHttpRequest.newBuilder(URI uri) Creates anHttpRequestbuilder 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.Versionfor this request.