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.cpp56 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 Dhttp_utility.hpp44 getPreferredContentType(std::string_view header, in getPreferredContentType() function
102 ContentType allowed = getPreferredContentType(header, types); in isContentTypeAllowed()
/openbmc/bmcweb/http/
H A Dcomplete_response_fields.hpp32 ContentType preferred = getPreferredContentType(accepts, allowed); in completeResponseFields()