Furnace action configuration
Furnace framework > Furnace actions

Prev:<action> ( -- action )
Next:Form validation with actions


Actions have the following slots:
restA parameter name to map the rest of the URL, after the action name, to. If this is not set, then navigating to a URL where the action is not the last path component will return to the client with an error. A more general facility can be found in the http.server.rewrite vocabulary.
initA quotation called at the beginning of a GET or HEAD request. Typically this quotation configures HTML forms and parses query parameters.
authorizeA quotation called at the beginning of a GET, HEAD or POST request. In GET requests, it is called after the init quotation; in POST requests, it is called after the validate quotation. By convention, this quotation performs custom authorization checks which depend on query parameters or POST parameters.
displayA quotation called after the init quotation in a GET request. This quotation must return an HTTP response.
validateA quotation called at the beginning of a POST request to validate POST parameters.
submitA quotation called after the validate quotation in a POST request. This quotation must return an HTTP response.

At least one of the display and submit slots must be set, otherwise the action will be useless.