body

fun body(bodySource: BufferedSource): HttpResponse.Builder

A streamable body.


Deprecated (with error)

Use body(BufferedSource) instead

Replace with

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

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