RouteRequest

interface RouteRequest

The parameters of a service route's request, read as the types its function takes; the edge implements it.

Functions

Link copied to clipboard
abstract fun <T> body(type: KType): T

The request body as type, the function's body parameter.

Link copied to clipboard
abstract fun <T : Any> path(name: String, type: KClass<T>): T

The path variable name as type: a string, a number, a boolean or an enum.

Link copied to clipboard
abstract fun <T : Any> query(name: String, type: KClass<T>): T?

The query parameter name as type, or null when the request leaves it out.