Malloy
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
router_adaptor< Derived > Class Template Reference
Inheritance diagram for router_adaptor< Derived >:
Inheritance graph
[legend]
Collaboration diagram for router_adaptor< Derived >:
Collaboration graph
[legend]

Public Types

using http_conn_t = const connection_t &
 
using req_t = std::shared_ptr< typename connection< Derived >::request_generator >
 
- Public Types inherited from malloy::server::http::connection< Derived >::handler
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
 
- Public Member Functions inherited from malloy::server::http::connection< Derived >::handler
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
 

Detailed Description

template<typename Derived>
class router_adaptor< Derived >

Router adaptor.

This is needed to break the dependency cycle between connection and router.

See also
connection

Constructor & Destructor Documentation

◆ router_adaptor()

template<typename Derived >
router_adaptor< Derived >::router_adaptor ( router_t  router)
inline

Constructor.

Parameters
routerThe router.

The documentation for this class was generated from the following file: