Template Struct overload_group¶
Defined in File router.h
Struct Documentation¶
-
template<typename
U, typenameV>
structudho::overload_group¶ compile time chain of url mappings
Public Types
-
typedef overload_group<U, V>
self_type¶ type of this overload
-
typedef parent_type::terminal_type
terminal_type¶
Public Functions
-
overload_group(const parent_type &parent, const overload_type &overload)¶
-
template<typename
ContextT, typenameLambda>
intserve(ContextT &ctx, boost::beast::http::verb request_method, const std::string &subject, Lambda send)¶ serves the content if the http request matches with the content’s request method and path. Calls the callback in
_overloadif it is feasible for the current request. Otherwise bubbles the request meta-recursively if some other overload group is feasible.- Parameters
req: the http request to serverequest_method: http vmethod get post put head etc …subject: http resource pathsend: the write callback
-
void
summary(std::vector<module_info> &stack) const¶
-
template<typename
AttachmentT>
self_type &listen(boost::asio::io_service &io, AttachmentT &attachment, int port = 9198)¶
-
const terminal_type &
terminal() const¶
-
typedef overload_group<U, V>