|
Malloy
|
#include <connection.hpp>

Classes | |
| class | request_generator |
| class | handler |
| struct | config |
Public Member Functions | |
| connection (std::shared_ptr< spdlog::logger > logger, boost::beast::flat_buffer buffer, std::shared_ptr< handler > router, std::shared_ptr< const std::filesystem::path > http_doc_root) | |
| std::shared_ptr< spdlog::logger > | logger () const noexcept |
| template<bool isRequest, class Body, class Fields> | |
| void | do_write (boost::beast::http::message< isRequest, Body, Fields > &&msg) |
| void | do_read () |
Public Attributes | |
| struct config | cfg |
Protected Member Functions | |
| void | report_err (malloy::error_code ec, std::string_view context) |
Protected Attributes | |
| boost::beast::flat_buffer | m_buffer |
Friends | |
| class | request_generator |
An HTTP server connection.
|
inline |
Constructor
| logger | |
| buffer | |
| router | |
| http_doc_root |

|
inline |
Perform an asynchronous write.
| isRequest | Whether the message is a request (or a response). |
| Body | The request body type. |
| Fields | The request fields type. |
| msg | The request. |
|
inlinenodiscardnoexcept |
Get the logger instance.
This allows different components to log to the connection specific logger.
| struct config malloy::server::http::connection< Derived >::cfg |
The connection configuration.