Uses of Interface
java.net.http.HttpResponse
Packages that use HttpResponse
-
Uses of HttpResponse in java.net.http
Methods in java.net.http that return HttpResponseModifier and TypeMethodDescriptionHttpResponse<?>
WebSocketHandshakeException.getResponse()
Returns the server's counterpart of the opening handshake.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.Methods in java.net.http that return types with arguments of type HttpResponseModifier and TypeMethodDescriptionHttpResponse.previousResponse()
Returns anOptional
containing the previous intermediate response if one was received.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 HttpResponseModifier and TypeMethodDescriptionvoid
HttpResponse.PushPromiseHandler.applyPushPromise
(HttpRequest initiatingRequest, HttpRequest pushPromiseRequest, Function<HttpResponse.BodyHandler<T>, CompletableFuture<HttpResponse<T>>> acceptor) Notification of an incoming push promise.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.Constructors in java.net.http with parameters of type HttpResponseModifierConstructorDescriptionWebSocketHandshakeException
(HttpResponse<?> response) Constructs aWebSocketHandshakeException
with the givenHttpResponse
.