|
Malloy
|
Namespaces | |
| namespace | concepts |
| namespace | html |
| namespace | http |
| namespace | tcp |
| namespace | websocket |
Typedefs | |
| using | error_code = boost::beast::error_code |
| Error code used to signify errors without throwing. Truthy means it holds an error. | |
Functions | |
| std::string_view | to_string (const malloy::http::method method) |
| template<typename Body > | |
| std::string | to_string (const http::request< Body > &r) |
| template<typename Body , typename Fields > | |
| std::string | to_string (const http::response< Body, Fields > &r) |
| std::vector< std::string_view > | split (std::string_view str, std::string_view delimiter) |
| template<typename ... Args> | |
| void | log (const server::http::connection_t &conn, spdlog::level::level_enum level, fmt::format_string< Args... > fmt, Args &&... args) |
Malloy's top level namespace. Everything is encapsulated in this namespace.
| void malloy::log | ( | const server::http::connection_t & | conn, |
| spdlog::level::level_enum | level, | ||
| fmt::format_string< Args... > | fmt, | ||
| Args &&... | args | ||
| ) |
Log to connection logger.
This freestanding function allows logging to the connection logger.
| Args | Arguments parameter pack. |
| conn | The connection |
| level | Log level. |
| fmt | Format string. |
| args | Arguments. |
|
inline |
Splits a string.
| str | The string to split. |
| delimiter | The delimiter. |
|
inline |
Convert HTTP method/verb to string.
| method | The method. |