MockResponse

A scripted response to be replayed by the mock web server.

Constructors

Link copied to clipboard
constructor(code: Int = 200, headers: Headers = headersOf(), body: String = "", inTunnel: Boolean = false, socketPolicy: SocketPolicy = KeepOpen)

Types

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val code: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val settings: Settings
Link copied to clipboard
Link copied to clipboard

Returns the HTTP response line, such as "HTTP/1.1 200 OK".

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String