ResponseData

class ResponseData(val code: Int, val headers: Map<String, String>, val body: ByteArray? = null, val validFor: Duration)

Information of the HTTP Response necessary for HttpHandler.

Constructors

Link copied to clipboard
fun ResponseData(code: Int, headers: Map<String, String>, body: ByteArray? = null, validFor: Duration)

Properties

Link copied to clipboard
val body: ByteArray? = null

The HTTP response body as a byte array

Link copied to clipboard
val code: Int

The HTTP status code of the response.

Link copied to clipboard

The HTTP headers of the response.

Link copied to clipboard

The amount of time that the HTTP response is valid.