MockResponseBody

The body of a MockResponse.

Unlike okhttp3.ResponseBody, this interface is designed to be implemented by writers and not called by readers.

Properties

Link copied to clipboard
abstract val contentLength: Long

The length of this response in bytes, or -1 if unknown.

Functions

Link copied to clipboard
abstract fun writeTo(sink: BufferedSink)