Builder

abstract class Builder

A builder to create a Response.Body instance.

Since

200.2.0

Functions

Link copied to clipboard
abstract fun build(): Response.Body

Creates a new Response.Body instance.

Link copied to clipboard
abstract fun contentType(contentType: String): Response.Body.Builder

Sets the content type of the new response body, for example: text/html.

Link copied to clipboard
abstract fun data(data: InputStream, contentLength: Long): Response.Body.Builder

Sets the data of the new response body.