A class representing a route handler function. More...
#include <route.hpp>
Public Types | |
| enum class | Kind { Response , Streaming } |
Public Member Functions | |
| template<typename... Args> | |
| RouteHandlerFunc (std::function< asio::awaitable< http::Response >(Args...)> func) | |
| RouteHandlerFunc (StreamingHandlerDefinition func) | |
| RouteHandlerFunc (RouteHandlerFunc &&other)=default | |
| Kind | kind () const |
| template<typename... Args> | |
| asio::awaitable< http::Response > | operator() (Args &&... args) const |
| asio::awaitable< void > | invokeStreaming (asio::ip::tcp::socket &sock, const http::Request &request, std::vector< RouteArg > route_args, QueryArgsList query_args, std::chrono::steady_clock::time_point &deadline) const |
A class representing a route handler function.
This class is used to store and execute route handler function.
|
strong |
|
inline |
|
inline |
|
default |
|
inline |
|
inline |
|
inline |