HttpResponse

@Serializable
data class HttpResponse(val headers: Map<String, String>? = null, val body: String? = null)

A wrapper class for the http response.

Constructors

Link copied to clipboard
constructor(headers: Map<String, String>? = null, body: String? = null)

Properties

Link copied to clipboard
val body: String? = null

The raw HTTP response body, in JSON format.

Link copied to clipboard
val headers: Map<String, String>? = null

Used to retain the processed HTTP headers in the response.