Home
last modified time | relevance | path

Searched refs:isContentTypeAllowed (Results 1 – 6 of 6) sorted by relevance

/openbmc/bmcweb/test/include/
H A Dhttp_utility_test.cpp12 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 Dforward_unauthorized.hpp21 if (http_helpers::isContentTypeAllowed( in sendUnauthorized()
H A Dhttp_utility.hpp95 inline bool isContentTypeAllowed(std::string_view header, ContentType type, in isContentTypeAllowed() function
/openbmc/bmcweb/http/
H A Dhttp_connection.hpp308 isContentTypeAllowed(req->getHeaderValue("Accept"), in handle()
/openbmc/bmcweb/redfish-core/lib/
H A Dsystems_logservices_postcodes.hpp474 if (!http_helpers::isContentTypeAllowed( in handleSystemsLogServicesPostCodesEntriesEntryAdditionalDataGet()
H A Dlog_services.hpp2361 if (!http_helpers::isContentTypeAllowed( in handleDBusEventLogEntryDownloadGet()