mirror of
https://github.com/XRPLF/clio.git
synced 2026-08-22 05:00:52 +00:00
style: Set clang-format width 100 (#2953)
This commit is contained in:
@@ -34,11 +34,15 @@ struct ConnectionBase;
|
||||
* @brief Specifies the requirements a Webserver handler must fulfill.
|
||||
*/
|
||||
template <typename T>
|
||||
concept SomeServerHandler =
|
||||
requires(T handler, std::string req, std::shared_ptr<ConnectionBase> ws, boost::beast::error_code ec) {
|
||||
// the callback when server receives a request
|
||||
{ handler(req, ws) };
|
||||
};
|
||||
concept SomeServerHandler = requires(
|
||||
T handler,
|
||||
std::string req,
|
||||
std::shared_ptr<ConnectionBase> ws,
|
||||
boost::beast::error_code ec
|
||||
) {
|
||||
// the callback when server receives a request
|
||||
{ handler(req, ws) };
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief A tag class for server to help identify Server in templated code.
|
||||
|
||||
Reference in New Issue
Block a user