HttpHandler

fun interface HttpHandler

Provides ability to handle HTTP requests that originate within lenses.

Since

1.37.0

Types

Link copied to clipboard
interface Configuration

Exposes configuration options available to HttpHandler.

Link copied to clipboard
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.

Link copied to clipboard
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.

Functions

Link copied to clipboard

Processes the provided request and sends the Response back to the provided onResponse.