Searched refs:getPreferredContentType (Results 1 – 3 of 3) sorted by relevance
/openbmc/bmcweb/test/include/ |
H A D | http_utility_test.cpp | 52 TEST(getPreferredContentType, PositiveTest) in TEST() argument 56 getPreferredContentType("text/html, application/json", contentType), in TEST() 60 EXPECT_EQ(getPreferredContentType("text/html, application/json", htmlJson), in TEST() 64 EXPECT_EQ(getPreferredContentType("text/html, application/json", jsonHtml), in TEST() 68 EXPECT_EQ(getPreferredContentType("application/cbor, application::json", in TEST() 72 EXPECT_EQ(getPreferredContentType("application/json", cborJson), in TEST() 74 EXPECT_EQ(getPreferredContentType("*/*", cborJson), ContentType::ANY); in TEST() 77 TEST(getPreferredContentType, NegativeTest) in TEST() argument 81 getPreferredContentType("text/html, application/json", contentType), in TEST()
|
/openbmc/bmcweb/include/ |
H A D | http_utility.hpp | 41 inline ContentType getPreferredContentType( in getPreferredContentType() function 99 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()
|