Searched refs:isContentTypeAllowed (Results 1 – 6 of 6) sorted by relevance
/openbmc/bmcweb/test/include/ |
H A D | http_utility_test.cpp | 12 TEST(isContentTypeAllowed, PositiveTest) in TEST() argument 14 EXPECT_TRUE(isContentTypeAllowed("*/*", ContentType::HTML, true)); in TEST() 15 EXPECT_TRUE(isContentTypeAllowed("application/octet-stream", in TEST() 19 isContentTypeAllowed("application/json", ContentType::JSON, false)); in TEST() 22 EXPECT_TRUE(isContentTypeAllowed("application/json, text/html", in TEST() 26 TEST(isContentTypeAllowed, NegativeTest) in TEST() argument 28 EXPECT_FALSE(isContentTypeAllowed("application/octet-stream", in TEST() 36 EXPECT_FALSE(isContentTypeAllowed("application/json, text/html", in TEST() 40 TEST(isContentTypeAllowed, ContainsAnyMimeTypeReturnsTrue) in TEST() argument 46 TEST(isContentTypeAllowed, ContainsQFactorWeightingReturnsTrue) in TEST() argument [all …]
|
/openbmc/bmcweb/include/ |
H A D | forward_unauthorized.hpp | 21 if (http_helpers::isContentTypeAllowed( in sendUnauthorized()
|
H A D | http_utility.hpp | 95 inline bool isContentTypeAllowed(std::string_view header, ContentType type, in isContentTypeAllowed() function
|
/openbmc/bmcweb/http/ |
H A D | http_connection.hpp | 308 isContentTypeAllowed(req->getHeaderValue("Accept"), in handle()
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | systems_logservices_postcodes.hpp | 474 if (!http_helpers::isContentTypeAllowed( in handleSystemsLogServicesPostCodesEntriesEntryAdditionalDataGet()
|
H A D | log_services.hpp | 2361 if (!http_helpers::isContentTypeAllowed( in handleDBusEventLogEntryDownloadGet()
|