diff --git a/lib/malloy/server/routing/router.hpp b/lib/malloy/server/routing/router.hpp index eb20064..08e630b 100644 --- a/lib/malloy/server/routing/router.hpp +++ b/lib/malloy/server/routing/router.hpp @@ -106,7 +106,8 @@ namespace malloy::server * Create the lambda wrapped callback for the writer */ auto - make_endpt_writer_callback() { + make_endpt_writer_callback() + { return [this](const auto& req, R&& resp, const auto& conn) { std::visit( [&, this](Re&& resp) { @@ -120,7 +121,8 @@ namespace malloy::server class abstract_req_validator { public: - virtual ~abstract_req_validator() = default; + virtual + ~abstract_req_validator() = default; virtual bool @@ -444,7 +446,8 @@ namespace malloy::server bool isWebsocket = false, typename Derived, typename Connection> - void handle_request( + void + handle_request( const std::filesystem::path& doc_root, const req_generator& req, Connection&& connection @@ -511,8 +514,11 @@ namespace malloy::server bool is_handled_by_policies(const req_generator& req, const http::connection_t& connection) { - return std::any_of(std::cbegin(m_policies), std::cend(m_policies), [&](const policy_store& policy) { - return policy.process(req->header(), connection); + return std::any_of( + std::cbegin(m_policies), + std::cend(m_policies), + [&](const policy_store& policy) { + return policy.process(req->header(), connection); }); } @@ -525,7 +531,8 @@ namespace malloy::server * @param connection The HTTP connection. */ template - void handle_http_request( + void + handle_http_request( const std::filesystem::path&, const req_generator& req, const http::connection_t& connection @@ -570,7 +577,8 @@ namespace malloy::server * @param connection The WebSocket connection. */ template - void handle_ws_request( + void + handle_ws_request( const req_generator& gen, const std::shared_ptr& connection )