[ Version ( since = "0.3" ) ]
public void rule (Method method, string rule, owned HandlerCallback cb, string? name = null)
Bind a callback to a given method and rule.
The actual rule is scoped, anchored and compiled down to a GLib.Regex.
The method will be marked as provided with the Valum.Method.PROVIDED flag.
method |
flag for allowed HTTP methods |
rule |
rule matching the request path |
cb |
callback used to process the pair of request and response |