Home
last modified time | relevance | path

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

/openbmc/bmcweb/test/http/
H A Dparsing_test.cpp10 TEST(HttpParsing, isJsonContentType) in TEST() argument
12 EXPECT_TRUE(isJsonContentType("application/json")); in TEST()
16 EXPECT_TRUE(isJsonContentType("application/json;charset=utf-8")); in TEST()
17 EXPECT_TRUE(isJsonContentType("application/json;charset=ascii")); in TEST()
21 EXPECT_TRUE(isJsonContentType("application/json; charset=utf-8")); in TEST()
23 EXPECT_TRUE(isJsonContentType("APPLICATION/JSON")); in TEST()
24 EXPECT_TRUE(isJsonContentType("APPLICATION/JSON; CHARSET=UTF-8")); in TEST()
25 EXPECT_TRUE(isJsonContentType("APPLICATION/JSON;CHARSET=UTF-8")); in TEST()
27 EXPECT_FALSE(isJsonContentType("application/xml")); in TEST()
28 EXPECT_FALSE(isJsonContentType("")); in TEST()
[all …]
/openbmc/bmcweb/http/
H A Dparsing.hpp24 inline bool isJsonContentType(std::string_view contentType) in isJsonContentType() function
33 if (!isJsonContentType( in parseRequestAsJson()
/openbmc/bmcweb/redfish-core/include/
H A Dredfish_aggregator.hpp941 if (isJsonContentType(resp.getHeaderValue("Content-Type"))) in processResponse()
1003 if (isJsonContentType(resp.getHeaderValue("Content-Type"))) in processCollectionResponse()
1135 if (isJsonContentType(resp.getHeaderValue("Content-Type"))) in processContainsSubordinateResponse()