Uses of Class
java.net.http.HttpRequest
-
Packages that use HttpRequest 软件包 描述 java.net.http HTTP客户端和WebSocket API -
-
Uses of HttpRequest in java.net.http
Methods in java.net.http that return HttpRequest 变量和类型 方法 描述 HttpRequest
HttpRequest.Builder. build()
构建并返回HttpRequest
。HttpRequest
HttpResponse. request()
返回与此响应对应的HttpRequest
。Methods in java.net.http with parameters of type HttpRequest 变量和类型 方法 描述 void
HttpResponse.PushPromiseHandler. applyPushPromise(HttpRequest initiatingRequest, HttpRequest pushPromiseRequest, Function<HttpResponse.BodyHandler<T>,CompletableFuture<HttpResponse<T>>> acceptor)
传入推送承诺的通知。abstract <T> HttpResponse<T>
HttpClient. send(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler)
使用此客户端发送给定请求,必要时阻止获取响应。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 HttpRequest 变量和类型 方法 描述 static <T> HttpResponse.PushPromiseHandler<T>
HttpResponse.PushPromiseHandler. of(Function<HttpRequest,HttpResponse.BodyHandler<T>> pushPromiseHandler, ConcurrentMap<HttpRequest,CompletableFuture<HttpResponse<T>>> pushPromisesMap)
返回推送承诺处理程序,它将推送承诺及其响应累积到给定的映射中。static <T> HttpResponse.PushPromiseHandler<T>
HttpResponse.PushPromiseHandler. of(Function<HttpRequest,HttpResponse.BodyHandler<T>> pushPromiseHandler, ConcurrentMap<HttpRequest,CompletableFuture<HttpResponse<T>>> pushPromisesMap)
返回推送承诺处理程序,它将推送承诺及其响应累积到给定的映射中。
-