body

fun body(bodySource: BufferedSource): HttpResponse.Builder

A streamable body.


Deprecated

Use body(BufferedSource) instead

Replace with

import okio.Buffer
Buffer().write(bodyString)

An immutable body. Prefer bodySource so that the response can be streamed.