Request

class Request(val id: String, val lensId: String, val url: String, val method: LensesComponent.HttpHandler.Request.Method, val body: ByteArray?, val headers: Map<String, String>)

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

Parameters

id

Unique id of the request.

lensId

An id of the lens that sent the request.

url

URL of the request.

method

HTTP method of the request.

body

Additional request payload as a ByteArray.

headers

A map of named headers associated with the request.

Constructors

Link copied to clipboard
fun Request(id: String, lensId: String, url: String, method: LensesComponent.HttpHandler.Request.Method, body: ByteArray?, headers: Map<String, String>)

Types

Link copied to clipboard

Defines supported HTTP methods.

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
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
val url: String