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.cpp14 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 Dforward_unauthorized.hpp27 if (http_helpers::isContentTypeAllowed( in sendUnauthorized()
H A Dhttp_utility.hpp128 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 Dhttp_connection.hpp327 isContentTypeAllowed(req->getHeaderValue("Accept"), in handle()
/openbmc/bmcweb/redfish-core/lib/
H A Dsystems_logservices_postcodes.hpp508 if (!http_helpers::isContentTypeAllowed( in handleSystemsLogServicesPostCodesEntriesEntryAdditionalDataGet()
H A Dlog_services.hpp2296 if (!http_helpers::isContentTypeAllowed( in handleLogServicesDumpEntryComputerSystemDelete()