Searched refs:getPreferredContentType (Results 1 – 3 of 3) sorted by relevance
/openbmc/bmcweb/test/include/ |
H A D | http_utility_test.cpp | 56 TEST(getPreferredContentType, PositiveTest) in TEST() argument 60 getPreferredContentType("text/html, application/json", contentType), in TEST() 64 EXPECT_EQ(getPreferredContentType("text/html, application/json", htmlJson), in TEST() 68 EXPECT_EQ(getPreferredContentType("text/html, application/json", jsonHtml), in TEST() 72 EXPECT_EQ(getPreferredContentType("application/cbor, application::json", in TEST() 76 EXPECT_EQ(getPreferredContentType("application/json", cborJson), in TEST() 78 EXPECT_EQ(getPreferredContentType("*/*", cborJson), ContentType::ANY); in TEST() 81 TEST(getPreferredContentType, NegativeTest) in TEST() argument 85 getPreferredContentType("text/html, application/json", contentType), in TEST()
|
/openbmc/bmcweb/include/ |
H A D | http_utility.hpp | 44 getPreferredContentType(std::string_view header, in getPreferredContentType() function 102 ContentType allowed = getPreferredContentType(header, types); in isContentTypeAllowed()
|
/openbmc/bmcweb/http/ |
H A D | complete_response_fields.hpp | 32 ContentType preferred = getPreferredContentType(accepts, allowed); in completeResponseFields()
|