Route
Object Hierarchy:
Description:
[ Version ( since = "0.1" ) ]
public abstract class Route : Object
Describe a matching and handling process for a pair of VSGI.Request and
VSGI.Response objects.
It holds metadata as well to optimize the routing process.
Content:
Properties:
Creation methods:
Methods:
- public abstract bool fire (Request req, Response res, NextCallback next, Context ctx) throws Success, Redirection, ClientError, ServerError, Error
Apply the handler on the request and response.
- public abstract bool match (Request req, Context ctx)
Matches the given request and populate its parameters on success.
- public string to_url (...)
Reverse the route into an URL using varidic arguments.
- public abstract string to_url_from_hash (HashTable<string,string>? @params = null)
Reverse the route into an URL.
- public string to_url_from_valist (va_list list)
Reverse the route into an URL by building from a varidic arguments
list.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref