put
Builds a route to match PUT
requests with the specified regex path. Named parameters from regex can be accessed via ApplicationCall.parameters.
Example:
put(Regex("/(?<name>.+)/hello")) {
val name = call.parameters["name"]
...
}
Content copied to clipboard
inline fun <R : Any> Routing.put(path: Regex, crossinline body: suspend RoutingContext.(R) -> Unit): Routing
Builds a route to match PUT
requests with the specified regex path receiving a request body as content of the R type. Named parameters from regex can be accessed via ApplicationCall.parameters.
Example:
put<String>(Regex("/(?<name>.+)/hello")) {
val name = call.parameters["name"]
...
}
Content copied to clipboard
Builds a route to match PUT
requests with the specified path.
See also
Builds a route to match PUT
requests.
See also
Builds a route to match PUT
requests receiving a request body as content of the R type.
See also
inline fun <R : Any> Routing.put(path: String, crossinline body: suspend RoutingContext.(R) -> Unit): Routing
Builds a route to match PUT
requests with the specified path receiving a request body as content of the R type.