Searched refs:isContentTypeAllowed (Results 1 – 5 of 5) sorted by relevance
/openbmc/bmcweb/test/include/ |
H A D | http_utility_test.cpp | 16 TEST(isContentTypeAllowed, PositiveTest) in TEST() argument 18 EXPECT_TRUE(isContentTypeAllowed("*/*", ContentType::HTML, true)); in TEST() 19 EXPECT_TRUE(isContentTypeAllowed("application/octet-stream", in TEST() 23 isContentTypeAllowed("application/json", ContentType::JSON, false)); in TEST() 26 EXPECT_TRUE(isContentTypeAllowed("application/json, text/html", in TEST() 30 TEST(isContentTypeAllowed, NegativeTest) in TEST() argument 32 EXPECT_FALSE(isContentTypeAllowed("application/octet-stream", in TEST() 40 EXPECT_FALSE(isContentTypeAllowed("application/json, text/html", in TEST() 44 TEST(isContentTypeAllowed, ContainsAnyMimeTypeReturnsTrue) in TEST() argument 50 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 | 98 inline bool isContentTypeAllowed(std::string_view header, ContentType type, in isContentTypeAllowed() function
|
/openbmc/bmcweb/http/ |
H A D | http_connection.hpp | 309 isContentTypeAllowed(req->getHeaderValue("Accept"), in handle()
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | log_services.hpp | 3087 if (!http_helpers::isContentTypeAllowed( in handleDBusEventLogEntryDownloadGet() 4424 if (!http_helpers::isContentTypeAllowed( in requestRoutesPostCodesEntryAdditionalData()
|