| /openbmc/bmcweb/redfish-core/include/ |
| H A D | error_messages.hpp | 38 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 D | query.hpp | 34 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.copy()), std::move(ifMatch))); in handleIfMatch() 120 crow::App& app, const crow::Request& req, in setUpRedfishRouteWithDelegation() 194 auto newReq = std::make_shared<crow::Request>(req.copy()); in setUpRedfishRouteWithDelegation() 197 std::function<void(crow::Response&)> handler = in setUpRedfishRouteWithDelegation() [all …]
|
| H A D | subscription.hpp | 56 explicit Subscription(crow::sse_socket::Connection& connIn); 62 const crow::Response& res); 81 bool matchSseId(const crow::sse_socket::Connection& thisConn); 92 std::shared_ptr<crow::ConnectionPolicy> policy; 93 crow::sse_socket::Connection* sseConn = nullptr; 96 std::optional<crow::HttpClient> client;
|
| H A D | redfish_aggregator.hpp | 220 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() 426 crow::HttpClient client; 591 AggregationType aggType, const crow::Request& thisReq, in startAggregation() 614 std::make_shared<crow::Request>(createNewRequest(thisReq)); in startAggregation() [all …]
|
| /openbmc/bmcweb/src/ |
| H A D | webserver_run.cpp | 41 std::ranges::find(crow::mapLogLevelFromName, logLevel); in setLogLevel() 42 if (iter == crow::mapLogLevelFromName.end()) in setLogLevel() 47 crow::getBmcwebCurrentLoggingLevel() = crow::getLogLevelFromName(logLevel); in setLogLevel() 58 crow::connections::systemBus = systemBus.get(); in runWebserver() 78 crow::webassets::requestRoutes(app); in runWebserver() 83 crow::obmc_kvm::requestRoutes(app); in runWebserver() 102 crow::dbus_monitor::requestRoutes(app); in runWebserver() 103 crow::image_upload::requestRoutes(app); in runWebserver() 104 crow::openbmc_mapper::requestRoutes(app); in runWebserver() 109 crow::obmc_console::requestRoutes(app); in runWebserver() [all …]
|
| /openbmc/bmcweb/features/ibm/ |
| H A D | configfile_test.cpp | 10 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/test/include/ |
| H A D | multipart_test.cpp | 38 crow::Request reqIn(body, ec); in TEST_F() 73 crow::Request reqIn(body, ec); in TEST_F() 91 crow::Request reqIn(body, ec); in TEST_F() 113 crow::Request reqIn(body, ec); in TEST_F() 132 crow::Request reqIn(body, ec); in TEST_F() 152 crow::Request reqIn(body, ec); in TEST_F() 172 crow::Request reqIn(body, ec); in TEST_F() 191 crow::Request reqIn(body, ec); in TEST_F() 210 crow::Request reqIn(body, ec); in TEST_F() 230 crow::Request reqIn(body, ec); in TEST_F() [all …]
|
| /openbmc/bmcweb/http/ |
| H A D | logging.hpp | 35 namespace crow namespace 81 constexpr crow::LogLevel getLogLevelFromName(std::string_view name) in getLogLevelFromName() 88 return crow::LogLevel::Disabled; in getLogLevelFromName() 92 inline crow::LogLevel& getBmcwebCurrentLoggingLevel() in getBmcwebCurrentLoggingLevel() 94 static crow::LogLevel level = getLogLevelFromName(BMCWEB_LOGGING_LEVEL); in getBmcwebCurrentLoggingLevel() 166 crow::vlog<crow::LogLevel::Critical, Args...>( in BMCWEB_LOG_CRITICAL() 179 crow::vlog<crow::LogLevel::Error, Args...>( in BMCWEB_LOG_ERROR() 192 crow::vlog<crow::LogLevel::Warning, Args...>( in BMCWEB_LOG_WARNING() 205 crow::vlog<crow::LogLevel::Info, Args...>( in BMCWEB_LOG_INFO() 218 crow::vlog<crow::LogLevel::Debug, Args...>( in BMCWEB_LOG_DEBUG()
|
| /openbmc/bmcweb/redfish-core/src/ |
| H A D | error_messages.cpp | 69 void success(crow::Response& res) in success() 86 void generalError(crow::Response& res) in generalError() 104 void created(crow::Response& res) in created() 122 void noOperation(crow::Response& res) in noOperation() 141 void propertyDuplicate(crow::Response& res, std::string_view arg1) in propertyDuplicate() 160 void propertyUnknown(crow::Response& res, std::string_view arg1) in propertyUnknown() 182 void propertyValueTypeError(crow::Response& res, const nlohmann::json& arg1, in propertyValueTypeError() 205 void propertyValueFormatError(crow::Response& res, const nlohmann::json& arg1, in propertyValueFormatError() 228 void propertyValueNotInList(crow::Response& res, const nlohmann::json& arg1, in propertyValueNotInList() 251 void propertyValueOutOfRange(crow::Response& res, const nlohmann::json& arg1, in propertyValueOutOfRange() [all …]
|
| /openbmc/bmcweb/redfish-core/lib/ |
| H A D | systems_logservices_dbus_eventlog.hpp | 32 crow::App& app, const crow::Request& req, in handleSystemsDBusEventLogEntryCollection() 58 crow::App& app, const crow::Request& req, in handleSystemsDBusEventLogEntryGet() 85 crow::App& app, const crow::Request& req, in handleSystemsDBusEventLogEntryPatch() 111 crow::App& app, const crow::Request& req, in handleSystemsDBusEventLogEntryDelete() 137 crow::App& app, const crow::Request& req, in handleSystemsDBusLogServiceActionsClear() 163 crow::App& app, const crow::Request& req, in handleSystemsDBusEventLogEntryDownloadGet()
|
| H A D | manager_logservices_dbus_eventlog.hpp | 31 crow::App& app, const crow::Request& req, in handleManagersDBusEventLogEntryCollection() 49 crow::App& app, const crow::Request& req, in handleManagersDBusEventLogEntryGet() 68 crow::App& app, const crow::Request& req, in handleManagersDBusEventLogEntryPatch() 86 crow::App& app, const crow::Request& req, in handleManagersDBusEventLogEntryDelete() 104 crow::App& app, const crow::Request& req, in handleManagersDBusLogServiceActionsClear() 127 crow::App& app, const crow::Request& req, in handleManagersDBusEventLogEntryDownload()
|
| H A D | redfish_sessions.hpp | 40 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() 199 const crow::Request& req, const std::string& username, in processAfterSessionCreation() 225 crow::getUserInfo(asyncResp, username, session, [asyncResp, session]() { in processAfterSessionCreation() 231 crow::App& app, const crow::Request& req, in handleSessionCollectionPost() 291 crow::App& app, const crow::Request& req, in handleSessionServiceHead() [all …]
|
| H A D | manager_logservices_journal_eventlog.hpp | 31 crow::App& app, const crow::Request& req, in handleManagersLogServiceEventLogLogEntryCollection() 58 crow::App& app, const crow::Request& req, in handleManagersJournalEventLogEntry() 77 crow::App& app, const crow::Request& req, in handleManagersJournalEventLogClear()
|
| H A D | systems_logservices_journal_eventlog.hpp | 33 crow::App& app, const crow::Request& req, in handleSystemsLogServiceEventLogLogEntryCollection() 67 crow::App& app, const crow::Request& req, in handleSystemsLogServiceEventLogEntriesGet() 94 crow::App& app, const crow::Request& req, in handleSystemsLogServicesEventLogActionsClearPost()
|
| /openbmc/bmcweb/http/routing/ |
| H A D | websocketrule.cpp | 17 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 D | sserule.cpp | 22 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()
|
| /openbmc/bmcweb/features/openbmc_rest/ |
| H A D | dbus_monitor.hpp | 26 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()
|
| /openbmc/bmcweb/test/redfish-core/include/ |
| H A D | redfish_oem_routing_test.cpp | 41 &service](const crow::Request& req, in TEST() 59 std::shared_ptr<crow::Request> req = std::make_shared<crow::Request>( in TEST() 60 crow::Request::Body{boost::beast::http::verb::get, reqUrl, 11}, ec); in TEST() 119 &service](const crow::Request& req, in TEST() 147 std::shared_ptr<crow::Request> req = std::make_shared<crow::Request>( in TEST() 148 crow::Request::Body{ in TEST()
|
| /openbmc/bmcweb/features/serial/ |
| H A D | obmc_console.hpp | 31 namespace crow namespace 43 crow::websocket::Connection& connIn) : in ConsoleHandler() 129 crow::websocket::MessageType::Binary, payload, in doRead() 161 crow::websocket::Connection& conn; 165 crow::websocket::Connection*, std::shared_ptr<ConsoleHandler>, std::less<>, 166 std::vector<std::pair<crow::websocket::Connection*, 177 inline void onClose(crow::websocket::Connection& conn, const std::string& err) in onClose() 193 inline void connectConsoleSocket(crow::websocket::Connection& conn, in connectConsoleSocket() 232 crow::websocket::Connection& conn, const std::string& consoleObjPath, in processConsoleObject() 276 inline void onOpen(crow::websocket::Connection& conn) in onOpen() [all …]
|
| /openbmc/bmcweb/features/kvm/ |
| H A D | kvm_websocket.hpp | 22 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/features/google/ |
| H A D | google_service_root_test.cpp | 16 namespace crow::google_api namespace 21 void validateServiceRootGet(crow::Response& res) in validateServiceRootGet() 42 crow::Request dummyRequest{{boost::beast::http::verb::get, "", 11}, ec}; in TEST()
|
| /openbmc/bmcweb/redfish-core/include/utils/ |
| H A D | etag_utils.hpp | 25 const std::function<void(crow::Response&)>& oldCompleteRequestHandler, in etagOmitDateTimeHandler() 26 crow::Response& res) in etagOmitDateTimeHandler() 39 std::function<void(crow::Response&)> oldCompleteRequestHandler = in setEtagOmitDateTimeHandler()
|
| H A D | redfish_aggregator_utils.hpp | 15 inline crow::Request createNewRequest(const crow::Request& localReq) in createNewRequest() 20 crow::Request req(localReq.body(), ec); in createNewRequest()
|
| /openbmc/bmcweb/test/redfish-core/include/utils/ |
| H A D | json_utils_test.cpp | 34 crow::Response res; in TEST() 54 crow::Response res; in TEST() 75 crow::Response res; in TEST() 88 crow::Response res; in TEST() 102 crow::Response res; in TEST() 121 crow::Response res; in TEST() 142 crow::Response res; in TEST() 162 crow::Response res; in TEST() 182 crow::Response res; in TEST() 198 crow::Response res; in TEST() [all …]
|
| /openbmc/bmcweb/test/redfish-core/lib/ |
| H A D | ethernet_test.cpp | 29 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()
|