Ambition.Action – ambition Reference Manual
Packages
ambition
Ambition
Action
last_path
methods
targets
Action
add_target
add_target_method
allow_method
path
regex
responds_to_request
_regex
Action
Object Hierarchy:
Description:
public
class
Action
:
Object
Action definition.
Namespace:
Ambition
Package:
ambition
Content:
Properties:
public
ArrayList
<
HttpMethod
?>
methods
{
set
;
get
; }
public
ArrayList
<
ActionMethod
?>
targets
{
set
;
get
; }
public
string
last_path
{
get
; }
Creation methods:
public
Action
()
Methods:
public
Action
path
(
string
path,
bool
with_args =
false
)
Set the path to respond to. Allows named captures (e.g. foo/{bar}/).
public
Action
regex
(
Regex
regex)
Set the regex to respond to. Will override path().
public
Action
allow_method
(
HttpMethod
method)
Adds an allowed HttpMethod to respond to. Defaults to HttpMethod.ALL.
public
Action
add_target
(
ActionMethodCall
am)
Add target ActionMethodCall to this action's chain.
public
Action
add_target_method
(
ActionMethod
am)
Add target ActionMethod to this action's chain.
public
bool
responds_to_request
(
string
decoded_path,
HttpMethod
method,
out
owned
MatchInfo
info =
null
)
Given a path and a method, return true if this action can respond to the request.
Fields:
public
Regex
_regex
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count