Home
last modified time | relevance | path

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

/openbmc/bmcweb/test/include/
H A Dhttp_utility_test.cpp16 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 Dforward_unauthorized.hpp21 if (http_helpers::isContentTypeAllowed( in sendUnauthorized()
H A Dhttp_utility.hpp98 inline bool isContentTypeAllowed(std::string_view header, ContentType type, in isContentTypeAllowed() function
/openbmc/bmcweb/http/
H A Dhttp_connection.hpp309 isContentTypeAllowed(req->getHeaderValue("Accept"), in handle()
/openbmc/bmcweb/redfish-core/lib/
H A Dlog_services.hpp3087 if (!http_helpers::isContentTypeAllowed( in handleDBusEventLogEntryDownloadGet()
4424 if (!http_helpers::isContentTypeAllowed( in requestRoutesPostCodesEntryAdditionalData()