Uses of Interface
jdk.incubator.http.HttpRequest.BodyProcessor
-
Packages that use HttpRequest.BodyProcessor 软件包 描述 jdk.incubator.http 高级HTTP和WebSocket API -
-
Uses of HttpRequest.BodyProcessor in jdk.incubator.http
Methods in jdk.incubator.http that return HttpRequest.BodyProcessor Modifier and Type 方法 描述 static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromByteArray(byte[] buf)
返回一个请求体处理器,其主体是给定的字节数组。static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromByteArray(byte[] buf, int offset, int length)
返回一个请求体处理器,其身体是从指定的offset
开始的给定字节数组的内容为length
个字节。static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromByteArrays(Iterable<byte[]> iter)
一个请求体处理器,从Iterable
的字节数组获取数据。static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromFile(Path path)
从文件的内容获取数据的请求体处理器。static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromInputStream(Supplier<? extends InputStream> streamSupplier)
一个请求体处理器,从InputStream
读取其数据。static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromString(String body)
返回一个请求体处理器,其身体是给定的String
,使用UTF_8
字符集进行转换。static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromString(String s, Charset charset)
返回一个请求体处理器,其身体是给定的String
,使用给定的字符集进行转换。static HttpRequest.BodyProcessor
HttpRequest. noBody()
请求体处理程序,不发送请求体。Methods in jdk.incubator.http that return types with arguments of type HttpRequest.BodyProcessor Modifier and Type 方法 描述 abstract Optional<HttpRequest.BodyProcessor>
HttpRequest. bodyProcessor()
返回一个Optional
其中包含这个请求的HttpRequest.BodyProcessor
。Methods in jdk.incubator.http with parameters of type HttpRequest.BodyProcessor Modifier and Type 方法 描述 abstract HttpRequest.Builder
HttpRequest.Builder. DELETE(HttpRequest.BodyProcessor body)
将此构建器的请求方法设置为DELETE,并将其请求体处理器设置为给定值。abstract HttpRequest.Builder
HttpRequest.Builder. method(String method, HttpRequest.BodyProcessor body)
将此构建器的请求方法和请求体设置为给定值。abstract HttpRequest.Builder
HttpRequest.Builder. POST(HttpRequest.BodyProcessor body)
将此构建器的请求方法设置为POST,并将其请求体处理器设置为给定值。abstract HttpRequest.Builder
HttpRequest.Builder. PUT(HttpRequest.BodyProcessor body)
将此构建器的请求方法设置为PUT,并将其请求体处理器设置为给定值。
-