Uses of Interface
jdk.incubator.http.HttpResponse.BodyHandler
-
Packages that use HttpResponse.BodyHandler 软件包 描述 jdk.incubator.http 高级HTTP和WebSocket API -
-
Uses of HttpResponse.BodyHandler in jdk.incubator.http
Methods in jdk.incubator.http that return HttpResponse.BodyHandler Modifier and Type 方法 描述 static HttpResponse.BodyHandler<byte[]>
HttpResponse.BodyHandler. asByteArray()
返回一个BodyHandler<byte[]>
,返回一个从BodyProcessor.asByteArray()
获得的BodyProcessor
<byte[]
>。static HttpResponse.BodyHandler<Void>
HttpResponse.BodyHandler. asByteArrayConsumer(Consumer<Optional<byte[]>> consumer)
返回BodyHandler<Void>
返回一个BodyProcessor
<Void>
从获得BodyProcessor.asByteArrayConsumer(Consumer)
。static HttpResponse.BodyHandler<Path>
HttpResponse.BodyHandler. asFile(Path file)
返回BodyHandler<Path>
返回一个BodyProcessor
<Path>
从获得BodyProcessor.asFile(Path)
。static HttpResponse.BodyHandler<Path>
HttpResponse.BodyHandler. asFile(Path file, OpenOption... openOptions)
返回BodyHandler<Path>
返回一个BodyProcessor
<Path>
从获得BodyProcessor.asFile(Path,OpenOption...)
。static HttpResponse.BodyHandler<Path>
HttpResponse.BodyHandler. asFileDownload(Path directory, OpenOption... openOptions)
返回一个BodyHandler<Path>
,返回一个BodyProcessor
<Path
>其中指定了下载目录,但文件名是从Content-Disposition
响应头获取的。static HttpResponse.BodyHandler<String>
HttpResponse.BodyHandler. asString()
返回BodyHandler<String>
返回一个BodyProcessor
<String>
从获得BodyProcessor.asString(Charset)
。static HttpResponse.BodyHandler<String>
HttpResponse.BodyHandler. asString(Charset charset)
返回BodyHandler<String>
返回一个BodyProcessor
<String>
从获得BodyProcessor.asString(Charset)
。static <U> HttpResponse.BodyHandler<U>
HttpResponse.BodyHandler. discard(U value)
返回响应体处理程序,该处理程序丢弃响应正文并使用给定值作为替代。Methods in jdk.incubator.http that return types with arguments of type HttpResponse.BodyHandler Modifier and Type 方法 描述 Optional<HttpResponse.BodyHandler<T>>
HttpResponse.MultiProcessor. onRequest(HttpRequest request)
被称为主要请求和每个推送承诺。Methods in jdk.incubator.http with parameters of type HttpResponse.BodyHandler Modifier and Type 方法 描述 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)
使用此客户端和给定的响应处理程序异步发送给定的请求。Method parameters in jdk.incubator.http with type arguments of type HttpResponse.BodyHandler 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)
返回多个响应的通用处理程序。
-