Searched refs:isJsonContentType (Results 1 – 3 of 3) sorted by relevance
8 TEST(HttpParsing, isJsonContentType) in TEST() argument10 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 …]
20 inline bool isJsonContentType(std::string_view contentType) in isJsonContentType() function31 if (!isJsonContentType( in parseRequestAsJson()
875 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()