Uses of Interface jdk.incubator.http.HttpRequest.BodyPublisher (Java SE 10 & JDK 10 )

## Uses of Interface
jdk.incubator.http.HttpRequest.BodyPublisher

- Packages that use HttpRequest.BodyPublisher
  Package | Description
  --- | ---
  jdk.incubator.http | High level HTTP and WebSocket API

- - ### Uses of HttpRequest.BodyPublisher in jdk.incubator.http

    Methods in jdk.incubator.http that return HttpRequest.BodyPublisher
    Modifier and Type | Method | Description
    --- | --- | ---
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromByteArray​(byte[] buf)` | Returns a request body publisher whose body is the given byte array.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromByteArray​(byte[] buf, int offset, int length)` | Returns a request body publisher whose body is the content of the given byte array of `length` bytes starting from the specified `offset`.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromByteArrays​(Iterable<byte[]> iter)` | A request body publisher that takes data from an `Iterable` of byte arrays.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromFile​(Path path)` | A request body publisher that takes data from the contents of a File.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromInputStream​(Supplier<? extends InputStream> streamSupplier)` | A request body publisher that reads its data from an `InputStream`.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromPublisher​(Flow.Publisher<? extends ByteBuffer> publisher)` | Returns a request body publisher whose body is retrieved from the given `Flow.Publisher`.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromPublisher​(Flow.Publisher<? extends ByteBuffer> publisher, long contentLength)` | Returns a request body publisher whose body is retrieved from the given `Flow.Publisher`.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromString​(String body)` | Returns a request body publisher whose body is the given `String`, converted using the `UTF_8` character set.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`fromString​(String s, Charset charset)` | Returns a request body publisher whose body is the given `String`, converted using the given character set.
    `static HttpRequest.BodyPublisher` | HttpRequest.BodyPublisher.`noBody()` | A request body publisher which sends no request body.

    Methods in jdk.incubator.http that return types with arguments of type HttpRequest.BodyPublisher
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract Optional<HttpRequest.BodyPublisher>` | HttpRequest.`bodyPublisher()` | Returns an `Optional` containing the `HttpRequest.BodyPublisher` set on this request.

    Methods in jdk.incubator.http with parameters of type HttpRequest.BodyPublisher
    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract HttpRequest.Builder` | HttpRequest.Builder.`DELETE​(HttpRequest.BodyPublisher bodyPublisher)` | Sets the request method of this builder to DELETE and sets its request body publisher to the given value.
    `abstract HttpRequest.Builder` | HttpRequest.Builder.`method​(String method, HttpRequest.BodyPublisher bodyPublisher)` | Sets the request method and request body of this builder to the given values.
    `abstract HttpRequest.Builder` | HttpRequest.Builder.`POST​(HttpRequest.BodyPublisher bodyPublisher)` | Sets the request method of this builder to POST and sets its request body publisher to the given value.
    `abstract HttpRequest.Builder` | HttpRequest.Builder.`PUT​(HttpRequest.BodyPublisher bodyPublisher)` | Sets the request method of this builder to PUT and sets its request body publisher to the given value.