Adds a PUT route; the template, handler and max_body work as for get.
put :: (
app: *App,
$template: string,
$handler: $H,
max_body := 0,
$loc := #caller_location
)
Adds a PUT route; the template, handler and max_body work as for get.
Parameters
- app: *App
- $template: string
- $handler: $H
- max_body := 0
- $loc := #caller_location
put :: (
group: *Group($P),
$template: string,
$handler: $H,
max_body := 0,
$loc := #caller_location
)
The put for a route under a group's prefix.
Parameters
- group: *Group($P)
- $template: string
- $handler: $H
- max_body := 0
- $loc := #caller_location
put :: (
client: *Client,
url: string,
value: $V,
headers: [] Header_Field = .[]
) -> (Client_Response, Client_Error)
PUT with value as a JSON body, as post sends it.
Parameters
- client: *Client
- url: string
- value: $V
- headers: [] Header_Field