HttpResponse

data class HttpResponse(val status: Int, val body: String)

A raw HTTP response, before any status interpretation.

Constructors

Link copied to clipboard
constructor(status: Int, body: String)

Properties

Link copied to clipboard

Response body as text; empty rather than null when there is none.

Link copied to clipboard
val status: Int

HTTP status code as returned by the server.