Uses of Interface
jdk.incubator.http.HttpRequest.BodyProcessor
-
Packages that use HttpRequest.BodyProcessor Package Description jdk.incubator.http High level HTTP and WebSocket API -
-
Uses of HttpRequest.BodyProcessor in jdk.incubator.http
Methods in jdk.incubator.http that return HttpRequest.BodyProcessor Modifier and Type Method Description static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromByteArray(byte[] buf)
Returns a request body processor whose body is the given byte array.static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromByteArray(byte[] buf, int offset, int length)
Returns a request body processor whose body is the content of the given byte array oflength
bytes starting from the specifiedoffset
.static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromByteArrays(Iterable<byte[]> iter)
A request body processor that takes data from anIterable
of byte arrays.static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromFile(Path path)
A request body processor that takes data from the contents of a File.static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromInputStream(Supplier<? extends InputStream> streamSupplier)
A request body processor that reads its data from anInputStream
.static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromString(String body)
Returns a request body processor whose body is the givenString
, converted using theUTF_8
character set.static HttpRequest.BodyProcessor
HttpRequest.BodyProcessor. fromString(String s, Charset charset)
Returns a request body processor whose body is the givenString
, converted using the given character set.static HttpRequest.BodyProcessor
HttpRequest. noBody()
A request body handler which sends no request body.Methods in jdk.incubator.http that return types with arguments of type HttpRequest.BodyProcessor Modifier and Type Method Description abstract Optional<HttpRequest.BodyProcessor>
HttpRequest. bodyProcessor()
Returns anOptional
containing theHttpRequest.BodyProcessor
set on this request.Methods in jdk.incubator.http with parameters of type HttpRequest.BodyProcessor Modifier and Type Method Description abstract HttpRequest.Builder
HttpRequest.Builder. DELETE(HttpRequest.BodyProcessor body)
Sets the request method of this builder to DELETE and sets its request body processor to the given value.abstract HttpRequest.Builder
HttpRequest.Builder. method(String method, HttpRequest.BodyProcessor body)
Sets the request method and request body of this builder to the given values.abstract HttpRequest.Builder
HttpRequest.Builder. POST(HttpRequest.BodyProcessor body)
Sets the request method of this builder to POST and sets its request body processor to the given value.abstract HttpRequest.Builder
HttpRequest.Builder. PUT(HttpRequest.BodyProcessor body)
Sets the request method of this builder to PUT and sets its request body processor to the given value.
-