app.hpp (f94c4ecf9cf61b91b552731e4e03cd84c1070972) | app.hpp (ecd6a3a20ab128ae9d3e356d6250695800dc13be) |
---|---|
1#pragma once 2 3#include "async_resp.hpp" 4#include "http_request.hpp" 5#include "http_server.hpp" 6#include "logging.hpp" 7#include "privileges.hpp" 8#include "routing.hpp" --- 30 unchanged lines hidden (view full) --- 39 std::make_shared<boost::asio::io_context>()) : 40 io(std::move(ioIn)) 41 {} 42 ~App() 43 { 44 this->stop(); 45 } 46 | 1#pragma once 2 3#include "async_resp.hpp" 4#include "http_request.hpp" 5#include "http_server.hpp" 6#include "logging.hpp" 7#include "privileges.hpp" 8#include "routing.hpp" --- 30 unchanged lines hidden (view full) --- 39 std::make_shared<boost::asio::io_context>()) : 40 io(std::move(ioIn)) 41 {} 42 ~App() 43 { 44 this->stop(); 45 } 46 |
47 App(const App&) = delete; 48 App(App&&) = delete; 49 App& operator=(const App&) = delete; 50 App& operator=(const App&&) = delete; 51 |
|
47 template <typename Adaptor> 48 void handleUpgrade(const Request& req, Response& res, Adaptor&& adaptor) 49 { 50 router.handleUpgrade(req, res, std::forward<Adaptor>(adaptor)); 51 } 52 53 void handle(Request& req, 54 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) --- 177 unchanged lines hidden --- | 52 template <typename Adaptor> 53 void handleUpgrade(const Request& req, Response& res, Adaptor&& adaptor) 54 { 55 router.handleUpgrade(req, res, std::forward<Adaptor>(adaptor)); 56 } 57 58 void handle(Request& req, 59 const std::shared_ptr<bmcweb::AsyncResp>& asyncResp) --- 177 unchanged lines hidden --- |