public ReactiveStreamsBodyGenerator(org.reactivestreams.Publisher<ByteBuffer> publisher,
Creates a Streamable Body which takes a Content-Length.
If the contentLength parameter is -1L a Http Header of Transfer-Encoding: chunked will be set.
Otherwise it will set the Content-Length header to the value provided
publisher - Body as a Publisher
contentLength - Content-Length of the Body
public org.reactivestreams.Publisher<ByteBuffer> getPublisher()
Creates a new instance of the request body to be read. While each invocation of this method is supposed to create
a fresh instance of the body, the actual contents of all these body instances is the same. For example, the body
needs to be resend after an authentication challenge of a redirect.