Malloy
|
Public Types | |
using | http_conn_t = const connection_t & |
using | req_t = std::shared_ptr< typename connection< Derived >::request_generator > |
![]() | |
using | request = malloy::http::request<> |
using | http_conn_t = const connection_t & |
using | path = std::filesystem::path |
using | req_t = std::shared_ptr< request_generator > |
Public Member Functions | |
router_adaptor (router_t router) | |
void | websocket (const std::filesystem::path &root, const req_t &req, const std::shared_ptr< malloy::server::websocket::connection > &conn) override |
void | http (const std::filesystem::path &root, const req_t &req, http_conn_t conn) override |
![]() | |
virtual void | websocket (const path &root, const req_t &req, const std::shared_ptr< malloy::server::websocket::connection > &)=0 |
virtual void | http (const path &root, const req_t &req, http_conn_t)=0 |
Router adaptor.
This is needed to break the dependency cycle between connection and router.
|
inline |
Constructor.
router | The router. |