Response

class Response(val request: LensesComponent.HttpHandler.Request, val code: Int, val headers: Map<String, String>, val body: ByteArray?)

Defines the data model for a HTTP response to a request sent by a lens.

Parameters

request

Request that triggered this response.

code

HTTP status code of the response.

headers

A map of named headers associated with the response.

body

Additional response payload as a ByteArray.

Constructors

Link copied to clipboard
fun Response(request: LensesComponent.HttpHandler.Request, code: Int, headers: Map<String, String>, body: ByteArray?)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
val code: Int
Link copied to clipboard
Link copied to clipboard