Http module

patch

procedure · 3 overloadsSource

Adds a PATCH route; the template, handler and max_body work as for get.

patch :: (
    app: *App,
    $template: string,
    $handler: $H,
    max_body := 0,
    $loc := #caller_location
)

Adds a PATCH route; the template, handler and max_body work as for get.

Parameters

app: *App
$template: string
$handler: $H
max_body := 0
$loc := #caller_location
patch :: (
    group: *Group($P),
    $template: string,
    $handler: $H,
    max_body := 0,
    $loc := #caller_location
)

The patch for a route under a group's prefix.

Parameters

group: *Group($P)
$template: string
$handler: $H
max_body := 0
$loc := #caller_location
patch :: (
    client: *Client,
    url: string,
    value: $V,
    headers: [] Header_Field = .[]
) -> (Client_Response, Client_Error)

PATCH with value as a JSON body, as post sends it.

Parameters

client: *Client
url: string
value: $V
headers: [] Header_Field

Returns

See also