Uses of Class
jdk.incubator.http.HttpResponse
-
Packages that use HttpResponse Package Description jdk.incubator.http High level HTTP and WebSocket API -
-
Uses of HttpResponse in jdk.incubator.http
Methods in jdk.incubator.http that return HttpResponse Modifier and Type Method Description HttpResponse<?>
WebSocketHandshakeException. getResponse()
Returns the server's counterpart of the opening handshake.abstract <T> HttpResponse<T>
HttpClient. send(HttpRequest req, HttpResponse.BodyHandler<T> responseBodyHandler)
Sends the given request using this client, blocking if necessary to get the response.Methods in jdk.incubator.http that return types with arguments of type HttpResponse Modifier and Type Method Description abstract Optional<HttpResponse<T>>
HttpResponse. previousResponse()
Returns anOptional
containing the previous intermediate response if one was received.abstract <T> CompletableFuture<HttpResponse<T>>
HttpClient. sendAsync(HttpRequest req, HttpResponse.BodyHandler<T> responseBodyHandler)
Sends the given request asynchronously using this client and the given response handler.Methods in jdk.incubator.http with parameters of type HttpResponse Modifier and Type Method Description void
HttpResponse.MultiSubscriber. onResponse(HttpResponse<T> response)
Called for each response received.Constructors in jdk.incubator.http with parameters of type HttpResponse Constructor Description WebSocketHandshakeException(HttpResponse<?> response)
-