Home
last modified time | relevance | path

Searched refs:SetHeader (Results 1 – 23 of 23) sorted by relevance

/external/chromium/net/http/
Dhttp_request_headers_unittest.cc15 headers.SetHeader("Foo", "bar"); in TEST()
26 TEST(HttpRequestHeaders, SetHeader) { in TEST() argument
28 headers.SetHeader("Foo", "bar"); in TEST()
34 headers.SetHeader("Cookie-Monster", "Nom nom nom"); in TEST()
35 headers.SetHeader("Domo-Kun", "Loves Chrome"); in TEST()
42 headers.SetHeader("Foo", "bar"); in TEST()
43 headers.SetHeader("Foo", "bar"); in TEST()
49 headers.SetHeader("Foo", "bar"); in TEST()
50 headers.SetHeader("FoO", "Bar"); in TEST()
56 headers.SetHeader("FooBar", "smokes"); in TEST()
[all …]
Dhttp_proxy_utils.cc26 request_headers->SetHeader(HttpRequestHeaders::kHost, in BuildTunnelRequest()
28 request_headers->SetHeader(HttpRequestHeaders::kProxyConnection, in BuildTunnelRequest()
34 request_headers->SetHeader(HttpRequestHeaders::kUserAgent, user_agent); in BuildTunnelRequest()
Dhttp_request_headers.cc80 void HttpRequestHeaders::SetHeader(const base::StringPiece& key, in SetHeader() function in net::HttpRequestHeaders
133 SetHeader(header_key, ""); in AddHeaderFromString()
135 SetHeader(header_key, in AddHeaderFromString()
140 SetHeader(header_key, ""); in AddHeaderFromString()
163 SetHeader(it->key, it->value); in MergeFrom()
Dhttp_network_transaction.cc684 request_headers_.SetHeader(HttpRequestHeaders::kHost, in BuildRequestHeaders()
689 request_headers_.SetHeader(HttpRequestHeaders::kProxyConnection, in BuildRequestHeaders()
692 request_headers_.SetHeader(HttpRequestHeaders::kConnection, "keep-alive"); in BuildRequestHeaders()
698 request_headers_.SetHeader(HttpRequestHeaders::kReferer, in BuildRequestHeaders()
705 request_headers_.SetHeader( in BuildRequestHeaders()
708 request_headers_.SetHeader( in BuildRequestHeaders()
718 request_headers_.SetHeader(HttpRequestHeaders::kContentLength, "0"); in BuildRequestHeaders()
723 request_headers_.SetHeader(HttpRequestHeaders::kPragma, "no-cache"); in BuildRequestHeaders()
724 request_headers_.SetHeader(HttpRequestHeaders::kCacheControl, "no-cache"); in BuildRequestHeaders()
726 request_headers_.SetHeader(HttpRequestHeaders::kCacheControl, "max-age=0"); in BuildRequestHeaders()
Dhttp_request_headers.h98 void SetHeader(const base::StringPiece& key, const base::StringPiece& value);
Dhttp_network_layer_unittest.cc94 request_info.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in TEST_F()
Dhttp_cache_transaction.cc1696 custom_request_->extra_headers.SetHeader( in ConditionalizeRequest()
1699 custom_request_->extra_headers.SetHeader( in ConditionalizeRequest()
1710 custom_request_->extra_headers.SetHeader( in ConditionalizeRequest()
1713 custom_request_->extra_headers.SetHeader( in ConditionalizeRequest()
Dhttp_proxy_client_socket.cc57 request_.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in HttpProxyClientSocket()
Dpartial_data.cc34 headers->SetHeader( in AddRangeHeader()
Dhttp_auth_controller.cc249 authorization_headers->SetHeader( in AddAuthorizationHeader()
Dhttp_network_transaction_unittest.cc4296 trans->request_headers_.SetHeader("Authorization", "NTLM"); in TEST_F()
4310 request.extra_headers.SetHeader("Foo", "1"); in TEST_F()
4311 request.extra_headers.SetHeader("bar", "23"); in TEST_F()
4835 request.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in TEST_F()
4874 request.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in TEST_F()
5140 request.extra_headers.SetHeader("FooHeader", "Bar"); in TEST_F()
5178 request.extra_headers.SetHeader("referer", "www.foo.com"); in TEST_F()
5179 request.extra_headers.SetHeader("hEllo", "Kitty"); in TEST_F()
5180 request.extra_headers.SetHeader("FoO", "bar"); in TEST_F()
/external/webkit/Source/WebKit/android/WebCoreSupport/
DWebResourceRequest.cpp108 m_requestHeaders.SetHeader(nameUtf8, valueUtf8); in WebResourceRequest()
/external/chromium/chrome/browser/net/
Dpreconnect.cc59 request_info.extra_headers.SetHeader(net::HttpRequestHeaders::kUserAgent, in PreconnectOnIOThread()
Dchrome_dns_cert_provenance_checker.cc56 headers.SetHeader(net::HttpRequestHeaders::kContentType, in OnDnsCertLookupFailed()
/external/chromium/chrome/browser/remoting/
Ddirectory_add_request.cc50 headers.SetHeader("Authorization", "GoogleLogin auth=" + auth_token); in AddHost()
/external/chromium/chrome/browser/automation/
Durl_request_automation_job.cc419 new_request_headers.SetHeader(net::HttpRequestHeaders::kAcceptLanguage, in StartAsync()
425 new_request_headers.SetHeader(net::HttpRequestHeaders::kAcceptCharset, in StartAsync()
/external/chromium/net/url_request/
Durl_request_http_job.cc378 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
382 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
385 request_info_.extra_headers.SetHeader( in AddExtraHeaders()
589 request_info_.extra_headers.SetHeader( in OnCanGetCookiesCompleted()
Durl_request_unittest.cc973 headers.SetHeader(HttpRequestHeaders::kRange, in TEST_F()
1017 headers.SetHeader(HttpRequestHeaders::kRange, in TEST_F()
1054 headers.SetHeader(HttpRequestHeaders::kRange, in TEST_F()
1380 headers.SetHeader("foo", "1"); in TEST_F()
1392 headers.SetHeader("foo", "1"); in TEST_F()
1406 headers.SetHeader("foo", "2"); in TEST_F()
1948 headers.SetHeader(HttpRequestHeaders::kContentLength, in TEST_F()
2811 headers.SetHeader(HttpRequestHeaders::kAcceptLanguage, "ru"); in TEST_F()
2857 headers.SetHeader(HttpRequestHeaders::kAcceptCharset, "koi-8r"); in TEST_F()
2886 headers.SetHeader(HttpRequestHeaders::kUserAgent, "Lynx (textmode)"); in TEST_F()
Durl_request.cc225 extra_request_headers_.SetHeader(name, value); in SetExtraRequestHeaderByName()
/external/chromium/net/ocsp/
Dnss_ocsp.cc171 extra_request_headers_.SetHeader(http_header_name, in AddHeader()
377 extra_request_headers_.SetHeader( in StartURLRequest()
/external/chromium/net/spdy/
Dspdy_proxy_client_socket.cc52 request_.extra_headers.SetHeader(HttpRequestHeaders::kUserAgent, in SpdyProxyClientSocket()
Dspdy_network_transaction_unittest.cc365 google_get_request_.extra_headers.SetHeader("User-Agent", "Chrome"); in CreateGetRequestWithUserAgent()
3410 request.extra_headers.SetHeader(header_key, header_value); in TEST_P()
/external/chromium/chrome/common/net/
Durl_fetcher.cc391 extra_request_headers_.SetHeader(net::HttpRequestHeaders::kContentType, in StartURLRequest()