publisherBody

fun publisherBody(body: Flow.Publisher<ByteBuffer>, contentLength: Long? = null): HttpRequest.Builder

Sets the body of the HTTP request as a Publisher.

Return

Returns the HttpRequest.Builder instance.

Parameters

body

The body of the request.

contentLength

The content length of the request body.