Searched refs:isContentTypeAllowed (Results 1 – 6 of 6) sorted by relevance
/openbmc/bmcweb/test/include/ |
H A D | http_utility_test.cpp | 14 TEST(isContentTypeAllowed, PositiveTest) in TEST() argument 16 EXPECT_TRUE(isContentTypeAllowed("*/*", ContentType::HTML, true)); in TEST() 17 EXPECT_TRUE(isContentTypeAllowed("application/octet-stream", in TEST() 19 EXPECT_TRUE(isContentTypeAllowed("text/html", ContentType::HTML, false)); in TEST() 21 isContentTypeAllowed("application/json", ContentType::JSON, false)); in TEST() 23 isContentTypeAllowed("application/cbor", ContentType::CBOR, false)); in TEST() 24 EXPECT_TRUE(isContentTypeAllowed("application/json, text/html", in TEST() 28 TEST(isContentTypeAllowed, NegativeTest) in TEST() argument 30 EXPECT_FALSE(isContentTypeAllowed("application/octet-stream", in TEST() 33 isContentTypeAllowed("application/html", ContentType::JSON, false)); in TEST() [all …]
|
/openbmc/bmcweb/include/ |
H A D | forward_unauthorized.hpp | 27 if (http_helpers::isContentTypeAllowed( in sendUnauthorized()
|
H A D | http_utility.hpp | 128 inline bool isContentTypeAllowed(std::string_view header, ContentType type, in isContentTypeAllowed() 118 inline bool isContentTypeAllowed(std::string_view header, ContentType type, isContentTypeAllowed() function
|
/openbmc/bmcweb/http/ |
H A D | http_connection.hpp | 327 isContentTypeAllowed(req->getHeaderValue("Accept"), in handle()
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | systems_logservices_postcodes.hpp | 508 if (!http_helpers::isContentTypeAllowed( in handleSystemsLogServicesPostCodesEntriesEntryAdditionalDataGet()
|
H A D | log_services.hpp | 2296 if (!http_helpers::isContentTypeAllowed( in handleLogServicesDumpEntryComputerSystemDelete()
|