RESTinio
|
Namespaces | |
namespace | impl |
Functions | |
template<typename... Args> | |
RESTINIO_NODISCARD auto | path_to_tuple (Args &&...args) |
Describe a route for a handler that accepts params from the route in form of a tuple. More... | |
template<typename... Args> | |
RESTINIO_NODISCARD auto | path_to_params (Args &&...args) |
Describe a route for a handler that accepts params from the route in form of a list of separate arguments. More... | |
RESTINIO_NODISCARD auto | path_fragment_p (char separator='/') |
A factory that creates a string-producer that extracts a sequence on symbols until the separator will be found. More... | |
template<typename Unescape_Traits = restinio::utils::restinio_default_unescape_traits> | |
RESTINIO_NODISCARD auto | unescape () |
A factory for unescape_transformer. More... | |
|
inline |
A factory that creates a string-producer that extracts a sequence on symbols until the separator will be found.
Usage example:
By default the separator is '/', by it can be changed by separator argument:
Definition at line 805 of file easy_parser_router.hpp.
RESTINIO_NODISCARD auto restinio::router::easy_parser_router::path_to_params | ( | Args &&... | args | ) |
Describe a route for a handler that accepts params from the route in form of a list of separate arguments.
Usage example:
Please note that a route can contain no params at all. In that case the request handler will receive just one parameter: a requst_handle.
Definition at line 748 of file easy_parser_router.hpp.
RESTINIO_NODISCARD auto restinio::router::easy_parser_router::path_to_tuple | ( | Args &&... | args | ) |
Describe a route for a handler that accepts params from the route in form of a tuple.
Usage example:
Please note that a route can contain no params at all. In that case an empty tuple will be passed as an argument to the request handler:
Definition at line 694 of file easy_parser_router.hpp.
RESTINIO_NODISCARD auto restinio::router::easy_parser_router::unescape | ( | ) |
A factory for unescape_transformer.
The unescape_transformer performs unescaping of percent-encoded string.
Usage example:
Definition at line 862 of file easy_parser_router.hpp.