MockResponse

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@set:JvmName(name = "headers")
var headers: Headers
Link copied to clipboard
@set:JvmName(name = "http2ErrorCode")
var http2ErrorCode: Int
Link copied to clipboard
Link copied to clipboard
var settings: Settings
Link copied to clipboard
@set:JvmName(name = "socketPolicy")
var socketPolicy: SocketPolicy
Link copied to clipboard
@set:JvmName(name = "status")
var status: String
Link copied to clipboard
Link copied to clipboard
@set:JvmName(name = "trailers")
var trailers: Headers
Link copied to clipboard

Functions

Link copied to clipboard
fun addHeader(name: String, value: Any): MockResponse
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun clone(): MockResponse
Link copied to clipboard
fun getBody(): Buffer?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setChunkedBody(body: String, maxChunkSize: Int): MockResponse
fun setChunkedBody(body: Buffer, maxChunkSize: Int): MockResponse
Link copied to clipboard
fun setHeader(name: String, value: Any): MockResponse
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setHttp2ErrorCode(http2ErrorCode: Int): MockResponse
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun throttleBody(bytesPerPeriod: Long, period: Long, unit: TimeUnit): MockResponse
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
fun withSettings(settings: Settings): MockResponse
Link copied to clipboard