Home
last modified time | relevance | path

Searched refs:HasHeader (Results 1 – 25 of 46) sorted by relevance

12

/external/chromium/net/http/
Dhttp_request_headers_unittest.cc13 TEST(HttpRequestHeaders, HasHeader) { in TEST() argument
16 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()
Dhttp_request_headers.h84 bool HasHeader(const base::StringPiece& key) const { in HasHeader() function
Dhttp_util_unittest.cc17 TEST(HttpUtilTest, HasHeader) { in TEST() argument
32 bool result = HttpUtil::HasHeader(tests[i].headers, tests[i].name); in TEST()
Dhttp_response_headers.h163 bool HasHeader(const std::string& name) const;
Dhttp_util.h70 static bool HasHeader(const std::string& headers, const char* name);
Dhttp_util.cc282 bool HttpUtil::HasHeader(const std::string& headers, const char* name) { in HasHeader() function in net::HttpUtil
619 if (net::HttpUtil::HasHeader(*headers, header_name)) in AppendHeaderIfMissing()
/external/chromium_org/net/http/
Dhttp_request_headers_unittest.cc15 TEST(HttpRequestHeaders, HasHeader) { in TEST() argument
18 EXPECT_TRUE(headers.HasHeader("foo")); in TEST()
19 EXPECT_TRUE(headers.HasHeader("Foo")); in TEST()
20 EXPECT_FALSE(headers.HasHeader("Fo")); in TEST()
23 EXPECT_TRUE(headers_ref.HasHeader("foo")); in TEST()
24 EXPECT_TRUE(headers_ref.HasHeader("Foo")); in TEST()
25 EXPECT_FALSE(headers_ref.HasHeader("Fo")); in TEST()
Dhttp_request_headers.h87 bool HasHeader(const base::StringPiece& key) const { in HasHeader() function
Dhttp_util_unittest.cc103 TEST(HttpUtilTest, HasHeader) { in TEST() argument
118 bool result = HttpUtil::HasHeader(tests[i].headers, tests[i].name); in TEST()
Dhttp_response_headers.h168 bool HasHeader(const base::StringPiece& name) const;
Dhttp_util.h72 static bool HasHeader(const std::string& headers, const char* name);
/external/chromium_org/net/websockets/
Dwebsocket_handshake_handler_test.cc192 EXPECT_FALSE(request_info.extra_headers.HasHeader("Upgrade")); in TEST()
193 EXPECT_FALSE(request_info.extra_headers.HasHeader("Connection")); in TEST()
194 EXPECT_FALSE(request_info.extra_headers.HasHeader("Sec-WebSocket-Key")); in TEST()
219 EXPECT_FALSE(response_info.headers->HasHeader("Upgrade")); in TEST()
220 EXPECT_FALSE(response_info.headers->HasHeader("Connection")); in TEST()
221 EXPECT_FALSE(response_info.headers->HasHeader("Sec-WebSocket-Accept")); in TEST()
Dwebsocket_basic_handshake_stream.cc131 DCHECK(!headers.HasHeader(websockets::kSecWebSocketKey)); in SendRequest()
132 DCHECK(!headers.HasHeader(websockets::kSecWebSocketProtocol)); in SendRequest()
133 DCHECK(!headers.HasHeader(websockets::kSecWebSocketExtensions)); in SendRequest()
134 DCHECK(headers.HasHeader(HttpRequestHeaders::kOrigin)); in SendRequest()
135 DCHECK(headers.HasHeader(websockets::kUpgrade)); in SendRequest()
136 DCHECK(headers.HasHeader(HttpRequestHeaders::kConnection)); in SendRequest()
137 DCHECK(headers.HasHeader(websockets::kSecWebSocketVersion)); in SendRequest()
/external/chromium_org/net/tools/flip_server/
Dmem_cache_test.cc70 ASSERT_TRUE(hello->headers()->HasHeader("key1")); in TEST_F()
71 ASSERT_TRUE(hello->headers()->HasHeader("key2")); in TEST_F()
72 ASSERT_TRUE(hello->headers()->HasHeader("transfer-encoding")); in TEST_F()
73 ASSERT_TRUE(hello->headers()->HasHeader("connection")); in TEST_F()
Dspdy_interface.cc446 if (!headers.HasHeader("version")) in SendSynStreamImpl()
448 if (headers.HasHeader("X-Original-Url")) { in SendSynStreamImpl()
458 if (headers.HasHeader("X-Original-Url")) { in SendSynStreamImpl()
589 if (!mci->file_data->headers()->HasHeader("content-encoding")) { in GetOutput()
590 if (mci->file_data->headers()->HasHeader("content-type")) { in GetOutput()
Dmem_cache.cc185 if (visitor.headers.HasHeader("expires")) { in ReadAndStoreFileContents()
/external/chromium/net/websockets/
Dwebsocket_handshake_handler_unittest.cc204 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()
/external/chromium_org/chrome/browser/metrics/variations/
Dvariations_http_header_provider_unittest.cc77 EXPECT_TRUE(headers.HasHeader("X-Client-Data")); in TEST()
95 EXPECT_FALSE(headers.HasHeader("X-Client-Data")); in TEST()
/external/chromium_org/net/tools/balsa/
Dbalsa_headers_test.cc247 TEST_F(BalsaHeadersTest, HasHeader) { in TEST_F() argument
250 ASSERT_TRUE(headers_->HasHeader("key1")); in TEST_F()
251 ASSERT_FALSE(headers_->HasHeader("value1")); in TEST_F()
252 ASSERT_FALSE(headers_->HasHeader("key2")); in TEST_F()
/external/chromium/net/tools/flip_server/
Dspdy_interface.cc465 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()
Dmem_cache.cc188 if (visitor.headers.HasHeader("expires")) { in ReadAndStoreFileContents()
/external/chromium_org/chrome/browser/android/
Dintercept_download_resource_throttle.cc57 if (headers.HasHeader(net::HttpRequestHeaders::kAuthorization) || in ProcessDownloadRequest()
/external/chromium_org/chrome/browser/signin/
Dsignin_header_helper.cc110 request->response_headers()->HasHeader(kChromeManageAccountsHeader)) { in ProcessMirrorResponseHeaderIfExists()
/external/chromium/chrome/browser/automation/
Durl_request_automation_job.cc416 if (!new_request_headers.HasHeader( in StartAsync()
422 if (!new_request_headers.HasHeader( in StartAsync()
/external/chromium_org/net/tools/quic/
Dquic_in_memory_cache.cc178 if (response_headers.HasHeader("X-Original-Url")) { in Initialize()

12