body

fun body(bodySource: BufferedSource): HttpResponse.Builder

A streamable body.


@ApolloDeprecatedSince(version = ApolloDeprecatedSince.Version.v3_4_1)
fun body(bodyString: ByteString): HttpResponse.Builder

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.