Loading...
Searching...
No Matches
route_handler
- A callback type for router::add. Requires either f(r) or f(r, v) where f is
- the (non-const) type, r is a malloy::http::request<T> and v is std::vector<std::string> holding the capture results of the regex expression.
- If the capture group parameter is omitted the matches will not be
- extracted from the input regex.
request_filter
- A filter type for processing requests before they are passed onto the
- handler. Must satisfy std::move_constructible and the expression:
f.setup_body(h, v)
must be valid, where f is const F&
, F
is the filter type, h is const F::request_type::header_type&
and v is F::request_type::body_type::value_type&
.
websocket_handler
- A callback type for router::add_websocket. The expression
f(h, c)
must - be valid, where
f
is T&
, h is const malloy::http::request_header<>&
and c
is const std::shared_ptr<malloy::server::websocket::connection>&
.