ChunkedResponse

class ChunkedResponse(    statusCode: Int = 200,     partsContentType: String = "application/json; charset=utf-8",     headers: Map<String, String> = emptyMap(),     responseDelayMillis: Long = 0,     chunksDelayMillis: Long = 0,     boundary: String = "-")

Constructors

Link copied to clipboard
fun ChunkedResponse(    statusCode: Int = 200,     partsContentType: String = "application/json; charset=utf-8",     headers: Map<String, String> = emptyMap(),     responseDelayMillis: Long = 0,     chunksDelayMillis: Long = 0,     boundary: String = "-")

Functions

Link copied to clipboard
fun send(    content: String,     isFirst: Boolean = false,     isLast: Boolean = false)

Properties

Link copied to clipboard
val response: MockResponse