Home
last modified time | relevance | path

Searched refs:getPreferredContentType (Results 1 – 3 of 3) sorted by relevance

/openbmc/bmcweb/test/include/
H A Dhttp_utility_test.cpp52 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 Dhttp_utility.hpp29 inline ContentType getPreferredContentType( in getPreferredContentType() function
80 ContentType allowed = getPreferredContentType(header, types); in isContentTypeAllowed()
/openbmc/bmcweb/http/
H A Dcomplete_response_fields.hpp32 ContentType preferred = getPreferredContentType(accepts, allowed); in completeResponseFields()