Home
last modified time | relevance | path

Searched refs:crow (Results 1 – 25 of 153) sorted by relevance

1234567

/openbmc/bmcweb/redfish-core/include/
H A Derror_messages.hpp38 void success(crow::Response& res);
50 void generalError(crow::Response& res);
60 void created(crow::Response& res);
71 void noOperation(crow::Response& res);
82 void propertyDuplicate(crow::Response& res, std::string_view arg1);
94 void propertyUnknown(crow::Response& res, std::string_view arg1);
108 void propertyValueTypeError(crow::Response& res, const nlohmann::json& arg1,
123 void propertyValueFormatError(crow::Response& res, const nlohmann::json& arg1,
138 void propertyValueNotInList(crow::Response& res, const nlohmann::json& arg1,
153 void propertyValueOutOfRange(crow::Response& res, const nlohmann::json& arg1,
[all …]
H A Dquery.hpp34 crow::App& app, const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, in afterIfMatchRequest()
35 const std::shared_ptr<crow::Request>& req, const std::string& ifMatchHeader, in afterIfMatchRequest()
36 const crow::Response& resIn) in afterIfMatchRequest()
52 inline bool handleIfMatch(crow::App& app, const crow::Request& req, in handleIfMatch()
85 auto getReq = std::make_shared<crow::Request>( in handleIfMatch()
86 crow::Request::Body{boost::beast::http::verb::get, in handleIfMatch()
109 std::make_shared<crow::Request>(req), std::move(ifMatch))); in handleIfMatch()
120 crow::App& app, const crow::Request& req, in setUpRedfishRouteWithDelegation()
172 std::function<void(crow::Response&)> handler = in setUpRedfishRouteWithDelegation()
177 delegated{delegated}](crow::Response& resIn) mutable { in setUpRedfishRouteWithDelegation()
[all …]
H A Dredfish_aggregator.hpp220 if (crow::utility::readUrlSegments(thisUrl, "redfish", "v1", "JsonSchemas", in addPrefixToStringItem()
221 crow::utility::OrMorePaths())) in addPrefixToStringItem()
229 if (!crow::utility::readUrlSegments(thisUrl, "redfish", "v1", in addPrefixToStringItem()
230 crow::utility::OrMorePaths())) in addPrefixToStringItem()
298 inline void addAggregatedHeaders(crow::Response& asyncResp, in addAggregatedHeaders()
299 const crow::Response& resp, in addAggregatedHeaders()
406 inline crow::ConnectionPolicy getAggregationPolicy() in getAggregationPolicy()
419 crow::HttpClient client;
577 AggregationType aggType, const crow::Request& thisReq, in startAggregation()
599 auto localReq = std::make_shared<crow::Request>(thisReq.req, ec); in startAggregation()
[all …]
H A Dsubscription.hpp67 explicit Subscription(crow::sse_socket::Connection& connIn);
72 void resHandler(const crow::Response& res);
91 bool matchSseId(const crow::sse_socket::Connection& thisConn);
102 std::shared_ptr<crow::ConnectionPolicy> policy;
103 crow::sse_socket::Connection* sseConn = nullptr;
105 std::optional<crow::HttpClient> client;
/openbmc/bmcweb/src/
H A Dwebserver_run.cpp39 std::ranges::find(crow::mapLogLevelFromName, logLevel); in setLogLevel()
40 if (iter == crow::mapLogLevelFromName.end()) in setLogLevel()
45 crow::getBmcwebCurrentLoggingLevel() = crow::getLogLevelFromName(logLevel); in setLogLevel()
56 crow::connections::systemBus = systemBus.get(); in run()
73 crow::webassets::requestRoutes(app); in run()
78 crow::obmc_kvm::requestRoutes(app); in run()
97 crow::dbus_monitor::requestRoutes(app); in run()
98 crow::image_upload::requestRoutes(app); in run()
99 crow::openbmc_mapper::requestRoutes(app); in run()
104 crow::obmc_console::requestRoutes(app); in run()
[all …]
H A Ddbus_utility.cpp77 sdbusplus::asio::getAllProperties(*crow::connections::systemBus, service, in getAllProperties()
94 crow::connections::systemBus->async_method_call( in checkDbusPathExists()
110 crow::connections::systemBus->async_method_call( in getSubTree()
126 crow::connections::systemBus->async_method_call( in getSubTreePaths()
145 crow::connections::systemBus->async_method_call( in getAssociatedSubTree()
162 crow::connections::systemBus->async_method_call( in getAssociatedSubTreePaths()
182 crow::connections::systemBus->async_method_call( in getAssociatedSubTreeById()
200 crow::connections::systemBus->async_method_call( in getAssociatedSubTreePathsById()
217 crow::connections::systemBus->async_method_call( in getDbusObject()
242 crow::connections::systemBus->async_method_call( in getManagedObjects()
/openbmc/bmcweb/redfish-core/src/
H A Derror_messages.cpp67 void success(crow::Response& res) in success()
84 void generalError(crow::Response& res) in generalError()
102 void created(crow::Response& res) in created()
120 void noOperation(crow::Response& res) in noOperation()
139 void propertyDuplicate(crow::Response& res, std::string_view arg1) in propertyDuplicate()
158 void propertyUnknown(crow::Response& res, std::string_view arg1) in propertyUnknown()
180 void propertyValueTypeError(crow::Response& res, const nlohmann::json& arg1, in propertyValueTypeError()
203 void propertyValueFormatError(crow::Response& res, const nlohmann::json& arg1, in propertyValueFormatError()
226 void propertyValueNotInList(crow::Response& res, const nlohmann::json& arg1, in propertyValueNotInList()
249 void propertyValueOutOfRange(crow::Response& res, const nlohmann::json& arg1, in propertyValueOutOfRange()
[all …]
/openbmc/bmcweb/test/include/
H A Dmultipart_test.cpp40 crow::Request reqIn(body, ec); in TEST_F()
75 crow::Request reqIn(body, ec); in TEST_F()
93 crow::Request reqIn(body, ec); in TEST_F()
115 crow::Request reqIn(body, ec); in TEST_F()
134 crow::Request reqIn(body, ec); in TEST_F()
154 crow::Request reqIn(body, ec); in TEST_F()
174 crow::Request reqIn(body, ec); in TEST_F()
193 crow::Request reqIn(body, ec); in TEST_F()
212 crow::Request reqIn(body, ec); in TEST_F()
232 crow::Request reqIn(body, ec); in TEST_F()
[all …]
/openbmc/bmcweb/http/
H A Dlogging.hpp35 namespace crow namespace
78 constexpr crow::LogLevel getLogLevelFromName(std::string_view name) in getLogLevelFromName()
85 return crow::LogLevel::Disabled; in getLogLevelFromName()
89 inline crow::LogLevel& getBmcwebCurrentLoggingLevel() in getBmcwebCurrentLoggingLevel()
91 static crow::LogLevel level = getLogLevelFromName(BMCWEB_LOGGING_LEVEL); in getBmcwebCurrentLoggingLevel()
163 crow::vlog<crow::LogLevel::Critical, Args...>( in BMCWEB_LOG_CRITICAL()
176 crow::vlog<crow::LogLevel::Error, Args...>( in BMCWEB_LOG_ERROR()
189 crow::vlog<crow::LogLevel::Warning, Args...>( in BMCWEB_LOG_WARNING()
202 crow::vlog<crow::LogLevel::Info, Args...>( in BMCWEB_LOG_INFO()
215 crow::vlog<crow::LogLevel::Debug, Args...>( in BMCWEB_LOG_DEBUG()
/openbmc/bmcweb/test/include/ibm/
H A Dconfigfile_test.cpp10 namespace crow namespace
17 crow::Response res; in TEST()
23 crow::Response res; in TEST()
29 crow::Response res; in TEST()
38 crow::Response res; in TEST()
44 crow::Response res; in TEST()
49 crow::Response res; in TEST()
/openbmc/bmcweb/redfish-core/lib/
H A Dredfish_sessions.hpp40 inline void fillSessionObject(crow::Response& res, in fillSessionObject()
61 crow::App& app, const crow::Request& req, in handleSessionHead()
75 crow::App& app, const crow::Request& req, in handleSessionGet()
101 crow::App& app, const crow::Request& req, in handleSessionDelete()
162 crow::App& app, const crow::Request& req, in handleSessionCollectionHead()
175 crow::App& app, const crow::Request& req, in handleSessionCollectionGet()
198 crow::App& app, const crow::Request& req, in handleSessionCollectionMembersGet()
210 const crow::Request& req, const std::string& username, in processAfterSessionCreation()
236 crow::getUserInfo(asyncResp, username, session, [asyncResp, session]() { in processAfterSessionCreation()
242 crow::App& app, const crow::Request& req, in handleSessionCollectionPost()
[all …]
H A Dbios.hpp30 crow::App& app, const crow::Request& req, in handleBiosServiceGet()
82 crow::App& app, const crow::Request& req, in handleBiosResetPost()
106 crow::connections::systemBus->async_method_call( in handleBiosResetPost()
H A Dlog_services.hpp593 crow::connections::systemBus->async_method_call( in deleteDumpEntry()
598 inline bool checkSizeLimit(int fd, crow::Response& res) in checkSizeLimit()
709 crow::connections::systemBus->async_method_call( in downloadDumpEntry()
744 crow::connections::systemBus->async_method_call( in downloadEventLogEntry()
817 crow::connections::systemBus->async_method_call( in createDumpTaskCallback()
942 const crow::Request& req, const std::string& dumpType) in createDump()
1024 crow::connections::systemBus->async_method_call( in createDump()
1082 crow::connections::systemBus->async_method_call( in clearDump()
1137 get)([&app](const crow::Request& req, in requestRoutesSystemLogServiceCollection()
1247 get)([&app](const crow::Request& req, in requestRoutesEventLogService()
[all …]
H A Dredfish_v1.hpp34 inline void redfishGet(App& app, const crow::Request& req, in redfishGet()
44 inline void redfish404(App& app, const crow::Request& req, in redfish404()
66 inline void redfish405(App& app, const crow::Request& req, in redfish405()
90 App& app, const crow::Request& req, in jsonSchemaIndexGet()
131 inline void jsonSchemaGet(App& app, const crow::Request& req, in jsonSchemaGet()
195 const crow::Request& /*req*/, in jsonSchemaGetFile()
222 crow::OpenCode ec = asyncResp->res.openFile(filepath); in jsonSchemaGetFile()
223 if (ec == crow::OpenCode::FileDoesNotExist) in jsonSchemaGetFile()
228 if (ec == crow::OpenCode::InternalError) in jsonSchemaGetFile()
/openbmc/bmcweb/test/http/
H A Dhttp_response_test.cpp22 void addHeaders(crow::Response& res) in addHeaders()
28 void verifyHeaders(crow::Response& res) in verifyHeaders()
71 crow::Response res; in TEST()
77 crow::Response res; in TEST()
86 crow::Response res; in TEST()
95 crow::Response res; in TEST()
106 crow::Response res; in TEST()
118 crow::Response res; in TEST()
141 crow::Response res; in TEST()
149 crow::Response res; in TEST()
[all …]
/openbmc/bmcweb/http/routing/
H A Dwebsocketrule.hpp21 namespace crow namespace
92 std::function<void(crow::websocket::Connection&)> openHandler;
93 std::function<void(crow::websocket::Connection&, const std::string&, bool)>
95 std::function<void(crow::websocket::Connection&, std::string_view,
96 crow::websocket::MessageType type,
99 std::function<void(crow::websocket::Connection&, const std::string&)>
101 std::function<void(crow::websocket::Connection&)> errorHandler;
H A Dwebsocketrule.cpp17 namespace crow namespace
25 crow::websocket::ConnectionImpl<boost::asio::ip::tcp::socket>> in handleUpgrade()
27 crow::websocket::ConnectionImpl<boost::asio::ip::tcp::socket>>( in handleUpgrade()
38 std::shared_ptr<crow::websocket::ConnectionImpl< in handleUpgrade()
40 myConnection = std::make_shared<crow::websocket::ConnectionImpl< in handleUpgrade()
H A Dsserule.cpp22 namespace crow namespace
48 crow::sse_socket::ConnectionImpl<boost::asio::ip::tcp::socket>> in handleUpgrade()
50 crow::sse_socket::ConnectionImpl<boost::asio::ip::tcp::socket>>( in handleUpgrade()
58 std::shared_ptr<crow::sse_socket::ConnectionImpl< in handleUpgrade()
60 myConnection = std::make_shared<crow::sse_socket::ConnectionImpl< in handleUpgrade()
H A Dsserule.hpp18 namespace crow namespace
57 std::function<void(crow::sse_socket::Connection&, const crow::Request&)>
59 std::function<void(crow::sse_socket::Connection&)> closeHandler;
/openbmc/bmcweb/include/
H A Dobmc_console.hpp32 namespace crow namespace
44 crow::websocket::Connection& connIn) : in ConsoleHandler()
130 crow::websocket::MessageType::Binary, payload, in doRead()
162 crow::websocket::Connection& conn;
166 crow::websocket::Connection*, std::shared_ptr<ConsoleHandler>, std::less<>,
167 std::vector<std::pair<crow::websocket::Connection*,
178 inline void onClose(crow::websocket::Connection& conn, const std::string& err) in onClose()
194 inline void connectConsoleSocket(crow::websocket::Connection& conn, in connectConsoleSocket()
233 crow::websocket::Connection& conn, const std::string& consoleObjPath, in processConsoleObject()
266 crow::connections::systemBus->async_method_call( in processConsoleObject()
[all …]
H A Ddbus_monitor.hpp26 namespace crow namespace
39 using SessionMap = boost::container::flat_map<crow::websocket::Connection*,
53 crow::websocket::Connection* connection = in onPropertyUpdate()
54 static_cast<crow::websocket::Connection*>(userdata); in onPropertyUpdate()
139 .onopen([](crow::websocket::Connection& conn) { in requestRoutes()
143 .onclose([](crow::websocket::Connection& conn, const std::string&) { in requestRoutes()
146 .onmessage([](crow::websocket::Connection& conn, in requestRoutes()
229 *crow::connections::systemBus, in requestRoutes()
252 *crow::connections::systemBus, ifaceMatchString, in requestRoutes()
266 *crow::connections::systemBus, objectManagerMatchString, in requestRoutes()
H A Dvm_websocket.hpp41 namespace crow namespace
48 static crow::websocket::Connection* session = nullptr;
204 NbdProxyServer(crow::websocket::Connection& connIn, in NbdProxyServer()
235 crow::connections::systemBus->async_method_call( in ~NbdProxyServer()
293 crow::connections::systemBus->async_method_call( in run()
340 crow::websocket::MessageType::Binary, in afterRead()
423 crow::websocket::Connection& connection;
426 using SessionMap = boost::container::flat_map<crow::websocket::Connection*,
432 crow::websocket::Connection& conn, in afterGetSocket()
478 inline void onOpen(crow::websocket::Connection& conn) in onOpen()
[all …]
H A Dkvm_websocket.hpp22 namespace crow namespace
32 explicit KvmSession(crow::websocket::Connection& connIn) : in KvmSession()
170 crow::websocket::Connection& conn;
177 using SessionMap = boost::container::flat_map<crow::websocket::Connection*,
189 .onopen([](crow::websocket::Connection& conn) { in requestRoutes()
200 .onclose([](crow::websocket::Connection& conn, const std::string&) { in requestRoutes()
203 .onmessage([](crow::websocket::Connection& conn, in requestRoutes()
/openbmc/bmcweb/test/redfish-core/include/utils/
H A Djson_utils_test.cpp33 crow::Response res; in TEST()
53 crow::Response res; in TEST()
74 crow::Response res; in TEST()
87 crow::Response res; in TEST()
101 crow::Response res; in TEST()
120 crow::Response res; in TEST()
141 crow::Response res; in TEST()
161 crow::Response res; in TEST()
178 crow::Response res; in TEST()
194 crow::Response res; in TEST()
[all …]
/openbmc/bmcweb/test/redfish-core/lib/
H A Dethernet_test.cpp29 crow::Response res; in TEST()
50 crow::Response res; in TEST()
75 crow::Response res; in TEST()
103 crow::Response res; in TEST()
127 crow::Response res; in TEST()
144 crow::Response res; in TEST()
161 crow::Response res; in TEST()
180 crow::Response res; in TEST()
202 crow::Response res; in TEST()

1234567