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() 64 EXPECT_EQ(getPreferredContentType( in TEST() 84 EXPECT_EQ(getPreferredContentType("application/json", cborJson), in TEST() 86 EXPECT_EQ(getPreferredContentType("*/*", cborJson), ContentType::ANY); in TEST() 89 EXPECT_EQ(getPreferredContentType( in TEST() 98 EXPECT_EQ(getPreferredContentType( in TEST() 101 EXPECT_EQ(getPreferredContentType( in TEST() 104 EXPECT_EQ(getPreferredContentType("application/json;q=0.9", cborJson), in TEST() 106 EXPECT_EQ(getPreferredContentType("application/json;q=1", cborJson), in TEST() [all …]
|
/openbmc/bmcweb/include/ |
H A D | http_utility.hpp | 29 inline ContentType getPreferredContentType( in getPreferredContentType() function 80 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()
|