Uses of Interface
java.net.http.HttpResponse
-
Packages that use HttpResponse 软件包 描述 java.net.http HTTP客户端和WebSocket API -
-
Uses of HttpResponse in java.net.http
Methods in java.net.http that return HttpResponse 变量和类型 方法 描述 HttpResponse<?>
WebSocketHandshakeException. getResponse()
返回打开握手的服务器对应项。abstract <T> HttpResponse<T>
HttpClient. send(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler)
使用此客户端发送给定请求,必要时阻止获取响应。Methods in java.net.http that return types with arguments of type HttpResponse 变量和类型 方法 描述 Optional<HttpResponse<T>>
HttpResponse. previousResponse()
如果收到一个中间响应,则返回包含先前中间响应的Optional
。abstract <T> CompletableFuture<HttpResponse<T>>
HttpClient. sendAsync(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler)
使用此客户端与给定的响应正文处理程序异步发送给定的请求。abstract <T> CompletableFuture<HttpResponse<T>>
HttpClient. sendAsync(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler, HttpResponse.PushPromiseHandler<T> pushPromiseHandler)
使用此客户端与给定的响应正文处理程序和推送承诺处理程序异步发送给定请求。Method parameters in java.net.http with type arguments of type HttpResponse 变量和类型 方法 描述 void
HttpResponse.PushPromiseHandler. applyPushPromise(HttpRequest initiatingRequest, HttpRequest pushPromiseRequest, Function<HttpResponse.BodyHandler<T>,CompletableFuture<HttpResponse<T>>> acceptor)
传入推送承诺的通知。static <T> HttpResponse.PushPromiseHandler<T>
HttpResponse.PushPromiseHandler. of(Function<HttpRequest,HttpResponse.BodyHandler<T>> pushPromiseHandler, ConcurrentMap<HttpRequest,CompletableFuture<HttpResponse<T>>> pushPromisesMap)
返回推送承诺处理程序,它将推送承诺及其响应累积到给定的映射中。Constructors in java.net.http with parameters of type HttpResponse 构造器 描述 WebSocketHandshakeException(HttpResponse<?> response)
构造一个WebSocketHandshakeException
给定HttpResponse
。
-