Searched refs:isJsonContentType (Results 1 – 3 of 3) sorted by relevance
10 TEST(HttpParsing, isJsonContentType) in TEST() argument12 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 …]
24 inline bool isJsonContentType(std::string_view contentType) in isJsonContentType() function33 if (!isJsonContentType( in parseRequestAsJson()
941 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()