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.BodyProcessorHttpRequest.BodyProcessor. fromByteArray(byte[] buf)Returns a request body processor whose body is the given byte array.static HttpRequest.BodyProcessorHttpRequest.BodyProcessor. fromByteArray(byte[] buf, int offset, int length)Returns a request body processor whose body is the content of the given byte array oflengthbytes starting from the specifiedoffset.static HttpRequest.BodyProcessorHttpRequest.BodyProcessor. fromByteArrays(Iterable<byte[]> iter)A request body processor that takes data from anIterableof byte arrays.static HttpRequest.BodyProcessorHttpRequest.BodyProcessor. fromFile(Path path)A request body processor that takes data from the contents of a File.static HttpRequest.BodyProcessorHttpRequest.BodyProcessor. fromInputStream(Supplier<? extends InputStream> streamSupplier)A request body processor that reads its data from anInputStream.static HttpRequest.BodyProcessorHttpRequest.BodyProcessor. fromString(String body)Returns a request body processor whose body is the givenString, converted using theUTF_8character set.static HttpRequest.BodyProcessorHttpRequest.BodyProcessor. fromString(String s, Charset charset)Returns a request body processor whose body is the givenString, converted using the given character set.static HttpRequest.BodyProcessorHttpRequest. 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 anOptionalcontaining theHttpRequest.BodyProcessorset on this request.Methods in jdk.incubator.http with parameters of type HttpRequest.BodyProcessor Modifier and Type Method Description abstract HttpRequest.BuilderHttpRequest.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.BuilderHttpRequest.Builder. method(String method, HttpRequest.BodyProcessor body)Sets the request method and request body of this builder to the given values.abstract HttpRequest.BuilderHttpRequest.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.BuilderHttpRequest.Builder. PUT(HttpRequest.BodyProcessor body)Sets the request method of this builder to PUT and sets its request body processor to the given value.
-