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.cpp8 TEST(HttpParsing, isJsonContentType) in TEST() argument
10 EXPECT_TRUE(isJsonContentType("application/json")); in TEST()
14 EXPECT_TRUE(isJsonContentType("application/json;charset=utf-8")); in TEST()
18 EXPECT_TRUE(isJsonContentType("application/json; charset=utf-8")); in TEST()
20 EXPECT_TRUE(isJsonContentType("APPLICATION/JSON")); in TEST()
24 EXPECT_FALSE(isJsonContentType("application/xml")); in TEST()
25 EXPECT_FALSE(isJsonContentType("")); in TEST()
26 EXPECT_FALSE(isJsonContentType(";")); in TEST()
27 EXPECT_FALSE(isJsonContentType("application/json;")); in TEST()
28 EXPECT_FALSE(isJsonContentType("application/json; ")); in TEST()
[all …]
/openbmc/bmcweb/http/
H A Dparsing.hpp20 inline bool isJsonContentType(std::string_view contentType) in isJsonContentType() function
31 if (!isJsonContentType( in parseRequestAsJson()
/openbmc/bmcweb/redfish-core/include/
H A Dredfish_aggregator.hpp875 if (isJsonContentType(resp.getHeaderValue("Content-Type"))) in processResponse()
937 if (isJsonContentType(resp.getHeaderValue("Content-Type"))) in processCollectionResponse()
1069 if (isJsonContentType(resp.getHeaderValue("Content-Type"))) in processContainsSubordinateResponse()