Searched refs:getPreferredContentType (Results 1 – 3 of 3) sorted by relevance
/openbmc/bmcweb/test/include/ |
H A D | http_utility_test.cpp | 54 TEST(getPreferredContentType, PositiveTest) in TEST() argument 58 getPreferredContentType("text/html, application/json", contentType), in TEST() 62 EXPECT_EQ(getPreferredContentType("text/html, application/json", htmlJson), in TEST() 66 EXPECT_EQ(getPreferredContentType( in TEST() 78 EXPECT_EQ(getPreferredContentType("text/html, application/json", jsonHtml), in TEST() 82 EXPECT_EQ(getPreferredContentType("application/cbor, application::json", in TEST() 87 getPreferredContentType("application/json;charset=UTF-8", htmlJson), in TEST() 92 getPreferredContentType("text/event-stream;charset=UTF-8", eventStream), in TEST() 95 EXPECT_EQ(getPreferredContentType("application/json", cborJson), in TEST() 97 EXPECT_EQ(getPreferredContentType("*/*", cborJson), ContentType::ANY); in TEST() [all …]
|
/openbmc/bmcweb/include/ |
H A D | http_utility.hpp | 69 inline ContentType getPreferredContentType( in getPreferredContentType() function 122 ContentType allowed = getPreferredContentType(header, types); in isContentTypeAllowed()
|
/openbmc/bmcweb/http/ |
H A D | complete_response_fields.hpp | 34 ContentType preferred = getPreferredContentType(accepts, allowed); in completeResponseFields()
|