VmodalResponse

data class VmodalResponse(val statusCode: Int, val body: String = "", val headers: Map<String, List<String>> = emptyMap(), val bytes: ByteArray = body.toByteArray(StandardCharsets.UTF_8))

Bounded transport response with lazy structured decoding.

Constructors

Link copied to clipboard
constructor(statusCode: Int, body: String = "", headers: Map<String, List<String>> = emptyMap(), bytes: ByteArray = body.toByteArray(StandardCharsets.UTF_8))

Properties

Link copied to clipboard

decoded UTF-8 response text

Link copied to clipboard

bounded raw response bytes

Link copied to clipboard

response header values

Link copied to clipboard
val json: Any?

Lazily decoded structured response value.

Link copied to clipboard

HTTP response status

Functions

Link copied to clipboard

Returns the response as an object or throws MalformedResponse.

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

Returns response metadata without exposing its body.