HttpResponse

class HttpResponse(val status: Int, val body: String, val headers: Map<String, String> = emptyMap())

A plain HTTP response: what the library needs from a transport.

Constructors

Link copied to clipboard
constructor(status: Int, body: String, headers: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Int

Functions

Link copied to clipboard
fun header(name: String): String?

Case-insensitive header lookup.