Response

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

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.