Uses of Class
java.net.http.HttpRequest
Packages that use HttpRequest
-
Uses of HttpRequest in java.net.http
Methods in java.net.http that return HttpRequestModifier and TypeMethodDescriptionHttpRequest.Builder.build()
Builds and returns anHttpRequest
.HttpResponse.request()
Returns theHttpRequest
corresponding to this response.Methods in java.net.http with parameters of type HttpRequestModifier and TypeMethodDescriptionvoid
HttpResponse.PushPromiseHandler.applyPushPromise
(HttpRequest initiatingRequest, HttpRequest pushPromiseRequest, Function<HttpResponse.BodyHandler<T>, CompletableFuture<HttpResponse<T>>> acceptor) Notification of an incoming push promise.static HttpRequest.Builder
HttpRequest.newBuilder
(HttpRequest request, BiPredicate<String, String> filter) Creates aBuilder
whose initial state is copied from an existingHttpRequest
.abstract <T> HttpResponse<T>
HttpClient.send
(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler) Sends the given request using this client, blocking if necessary to get the response.abstract <T> CompletableFuture<HttpResponse<T>>
HttpClient.sendAsync
(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler) Sends the given request asynchronously using this client with the given response body handler.abstract <T> CompletableFuture<HttpResponse<T>>
HttpClient.sendAsync
(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler, HttpResponse.PushPromiseHandler<T> pushPromiseHandler) Sends the given request asynchronously using this client with the given response body handler and push promise handler.Method parameters in java.net.http with type arguments of type HttpRequestModifier and TypeMethodDescriptionstatic <T> HttpResponse.PushPromiseHandler<T>
HttpResponse.PushPromiseHandler.of
(Function<HttpRequest, HttpResponse.BodyHandler<T>> pushPromiseHandler, ConcurrentMap<HttpRequest, CompletableFuture<HttpResponse<T>>> pushPromisesMap) Returns a push promise handler that accumulates push promises, and their responses, into the given map.static <T> HttpResponse.PushPromiseHandler<T>
HttpResponse.PushPromiseHandler.of
(Function<HttpRequest, HttpResponse.BodyHandler<T>> pushPromiseHandler, ConcurrentMap<HttpRequest, CompletableFuture<HttpResponse<T>>> pushPromisesMap) Returns a push promise handler that accumulates push promises, and their responses, into the given map.