Searched refs:HasHeader (Results 1 – 15 of 15) sorted by relevance
13 TEST(HttpRequestHeaders, HasHeader) { in TEST() argument16 EXPECT_TRUE(headers.HasHeader("foo")); in TEST()17 EXPECT_TRUE(headers.HasHeader("Foo")); in TEST()18 EXPECT_FALSE(headers.HasHeader("Fo")); in TEST()21 EXPECT_TRUE(headers_ref.HasHeader("foo")); in TEST()22 EXPECT_TRUE(headers_ref.HasHeader("Foo")); in TEST()23 EXPECT_FALSE(headers_ref.HasHeader("Fo")); in TEST()
84 bool HasHeader(const base::StringPiece& key) const { in HasHeader() function
17 TEST(HttpUtilTest, HasHeader) { in TEST() argument32 bool result = HttpUtil::HasHeader(tests[i].headers, tests[i].name); in TEST()
163 bool HasHeader(const std::string& name) const;
70 static bool HasHeader(const std::string& headers, const char* name);
282 bool HttpUtil::HasHeader(const std::string& headers, const char* name) { in HasHeader() function in net::HttpUtil612 if (net::HttpUtil::HasHeader(*headers, header_name)) in AppendHeaderIfMissing()
605 if (!headers->HasHeader("Transfer-Encoding") && in DoParseResponseHeaders()
876 EXPECT_TRUE(request->extra_headers.HasHeader(kExtraHeaderKey)); in RangeHandler()915 if (!request->extra_headers.HasHeader("If-None-Match") || modified_) { in RangeHandler()1451 EXPECT_TRUE(request->extra_headers.HasHeader(kExtraHeaderKey)); in PreserveRequestHeaders_Handler()2184 request->extra_headers.HasHeader(net::HttpRequestHeaders::kIfNoneMatch)); in ETagGet_ConditionalRequest_Handler()2219 request->extra_headers.HasHeader(net::HttpRequestHeaders::kIfNoneMatch)); in ETagGet_ConditionalRequest_NoStore_Handler()
526 bool HttpResponseHeaders::HasHeader(const std::string& name) const { in HasHeader() function in net::HttpResponseHeaders
1379 if (request_->extra_headers.HasHeader(HttpRequestHeaders::kRange)) in SetRequest()
204 EXPECT_FALSE(request_info.extra_headers.HasHeader("Upgrade")); in TEST()205 EXPECT_FALSE(request_info.extra_headers.HasHeader("Connection")); in TEST()206 EXPECT_FALSE(request_info.extra_headers.HasHeader("Sec-WebSocket-Key1")); in TEST()207 EXPECT_FALSE(request_info.extra_headers.HasHeader("Sec-WebSocket-Key2")); in TEST()235 EXPECT_FALSE(response_info.headers->HasHeader("Upgrade")); in TEST()236 EXPECT_FALSE(response_info.headers->HasHeader("Connection")); in TEST()
465 if (!headers.HasHeader("status")) in SendSynStreamImpl()467 if (!headers.HasHeader("version")) in SendSynStreamImpl()469 if (headers.HasHeader("X-Original-Url")) { in SendSynStreamImpl()591 if (!mci->file_data->headers->HasHeader("content-encoding")) { in GetOutput()592 if (mci->file_data->headers->HasHeader("content-type")) { in GetOutput()
188 if (visitor.headers.HasHeader("expires")) { in ReadAndStoreFileContents()
718 inline bool HasHeader(const base::StringPiece& key) const { in HasHeader() function
416 if (!new_request_headers.HasHeader( in StartAsync()422 if (!new_request_headers.HasHeader( in StartAsync()