flowBody

fun flowBody(value: Flow<ByteBuffer>, contentLength: Long? = null): HttpRequest.Builder

Sets the body of the HTTP request as a Flow.

Return

Returns the HttpRequest.Builder instance.

Parameters

value

The value of the request body.

contentLength

The content length of the request body.