Uses of Class
jdk.incubator.http.HttpRequest
-
Packages that use HttpRequest 软件包 描述 jdk.incubator.http 高级HTTP和WebSocket API -
-
Uses of HttpRequest in jdk.incubator.http
Methods in jdk.incubator.http that return HttpRequest Modifier and Type 方法 描述 abstract HttpRequest
HttpRequest.Builder. build()
构建并返回一个HttpRequest
。abstract HttpRequest
HttpResponse. finalRequest()
返回在电汇上发送的最后的HttpRequest
进行交换(可能或可能不等于初始请求)。abstract HttpRequest
HttpResponse. request()
返回发起交易的最初的HttpRequest
。Methods in jdk.incubator.http that return types with arguments of type HttpRequest Modifier and Type 方法 描述 Set<Map.Entry<HttpRequest,CompletableFuture<HttpResponse<V>>>>
MultiMapResult. entrySet()
Set<HttpRequest>
MultiMapResult. keySet()
Methods in jdk.incubator.http with parameters of type HttpRequest Modifier and Type 方法 描述 void
HttpResponse.MultiProcessor. onError(HttpRequest request, Throwable t)
如果接收到响应发生错误,则调用。Optional<HttpResponse.BodyHandler<T>>
HttpResponse.MultiProcessor. onRequest(HttpRequest request)
被称为主要请求和每个推送承诺。CompletableFuture<HttpResponse<V>>
MultiMapResult. put(HttpRequest key, CompletableFuture<HttpResponse<V>> value)
abstract <T> HttpResponse<T>
HttpClient. send(HttpRequest req, HttpResponse.BodyHandler<T> responseBodyHandler)
使用此客户端发送给定的请求,如有必要,阻止获取响应。abstract <T> CompletableFuture<HttpResponse<T>>
HttpClient. sendAsync(HttpRequest req, HttpResponse.BodyHandler<T> responseBodyHandler)
使用此客户端和给定的响应处理程序异步发送给定的请求。abstract <U,T> CompletableFuture<U>
HttpClient. sendAsync(HttpRequest req, HttpResponse.MultiProcessor<U,T> multiProcessor)
使用此客户端和给定的多响应处理程序异步发送给定的请求。Method parameters in jdk.incubator.http with type arguments of type HttpRequest Modifier and Type 方法 描述 static <V> HttpResponse.MultiProcessor<MultiMapResult<V>,V>
HttpResponse.MultiProcessor. asMap(Function<HttpRequest,Optional<HttpResponse.BodyHandler<V>>> pushHandler)
返回多个响应的通用处理程序。static <V> HttpResponse.MultiProcessor<MultiMapResult<V>,V>
HttpResponse.MultiProcessor. asMap(Function<HttpRequest,Optional<HttpResponse.BodyHandler<V>>> pushHandler, boolean completion)
返回多个响应的通用处理程序。void
MultiMapResult. putAll(Map<? extends HttpRequest,? extends CompletableFuture<HttpResponse<V>>> m)
-