RequestKey

object RequestKey

Provides a way to attach and retrieve values from the context of a Request.

Functions

Link copied to clipboard
fun <T : Any> optional(name: String): RequestLens<T?>

Represents a nullable value in the context of a Request.

Link copied to clipboard
fun <T : Any> required(name: String): RequestLens<T>

Represents a mandatory value in the context of a Request.