Handbook
Glossary
action
Furnace framework
ยป
Furnace actions
Next:
<action> ( -- action )
Vocabulary
furnace
.
actions
Class description
The class of Furnace actions. New instances are created with
<action>
. New instances of subclasses can be created with
new-action
. The
page-action
class is a useful subclass.
Action slots are documented in
Furnace action configuration
.
Definition
IN:
furnace.actions
TUPLE:
action
rest init authorize display validate submit update replace
delete
;
Methods
USING:
accessors
combinators
furnace.actions
http
http.server
http.server.responses
kernel
namespaces
;
M:
action
call-responder*
[
init-action
]
keep
request
get
method>>
{
{
"GET"
[
handle-get
]
}
{
"HEAD"
[
handle-get
]
}
{
"POST"
[
handle-post
]
}
{
"PUT"
[
handle-put
]
}
{
"PATCH"
[
handle-patch
]
}
{
"DELETE"
[
handle-delete
]
}
[
2drop
<405>
]
}
case
;
USING:
furnace.actions
furnace.utilities
kernel
namespaces
urls
;
M:
action
modify-form
drop
url
get
revalidate-url-key
hidden-form-field
;