/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-python/httplib2/ |
H A D | __init__.py | 141 # Does not use Age: headers when calculating cache freshness. 150 # Which headers are hop-by-hop headers by default 216 def _normalize_headers(headers): 217 return dict([ (key.lower(), NORMALIZE_SPACE.sub(value, ' ').strip()) for (key, value) in headers.iteritems()]) 219 def _parse_cache_control(headers): 221 if headers.has_key('cache-control'): 222 parts = headers['cache-control'].split(',') 228 # Whether to use a strict mode to parse WWW-Authenticate headers 242 def _parse_www_authenticate(headers, headernam [all...] |
/external/chromium_org/net/tools/quic/ |
H A D | quic_in_memory_cache_test.cc | 37 net::BalsaHeaders* headers) { 38 headers->SetRequestFirstlineFromStringPieces("GET", path, "HTTP/1.1"); 39 headers->ReplaceOrAppendHeader("host", host); 69 cached_response->headers().DumpToString(&cached_response_headers_str); 89 EXPECT_EQ("200", response->headers().response_code()); 95 EXPECT_EQ("200", response->headers().response_code()); 107 response->headers().GetAllOfHeaderAsString("Connection", &value); 108 EXPECT_EQ("200", response->headers().response_code()); 121 response->headers().GetAllOfHeaderAsString("Connection", &value); 122 EXPECT_EQ("200", response->headers() 35 CreateRequest(std::string host, std::string path, net::BalsaHeaders* headers) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/ |
H A D | RequestTest.cpp | 64 struct { const char* key; const char* value; } headers[] = { {"X-Foo", "bar"}, {"X-Quux", "foop"}, {0, 0} }; local 70 for (int i = 0; headers[i].key; ++i) 71 webRequest.setHeader(WebString::fromUTF8(headers[i].key), WebString::fromUTF8(headers[i].value)); 80 Headers* requestHeaders = request->headers(); 83 for (int i = 0; headers[i].key; ++i) 84 headersMap.add(headers[i].key, headers[i].value); 98 EXPECT_EQ(webRequest.headers(), secondWebRequest.headers()); [all...] |
/external/chromium_org/third_party/polymer/components-chromium/core-ajax/ |
H A D | core-xhr-extracted.js | 15 * @param {Object} inOptions.headers HTTP request headers. 41 this.setRequestHeaders(xhr, options.headers); 77 setRequestHeaders: function(xhr, headers) { 78 if (headers) { 79 for (var name in headers) { 80 xhr.setRequestHeader(name, headers[name]);
|
/external/chromium_org/net/http/ |
H A D | proxy_client_socket.cc | 49 DCHECK(response->headers.get()); 50 int rv = auth->HandleAuthChallenge(response->headers, false, true, net_log); 77 DCHECK(response && response->headers.get()); 80 if (!response->headers->IsRedirect(&location)) 83 // Return minimal headers; set "Content-length: 0" to ignore response body. 94 response->headers = new HttpResponseHeaders(raw_headers);
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
H A D | RecordedResponse.java | 50 Headers headers = response.headers(); 51 for (int i = 0; i < headers.size(); i++) { 52 actualHeaders.add(headers.name(i) + ": " + headers.value(i));
|
/external/chromium_org/chrome/browser/prerender/ |
H A D | prerender_util_unittest.cc | 83 // Ensure that we count PageSpeed headers correctly. 89 scoped_refptr<net::HttpResponseHeaders> headers( 105 GatherPagespeedData(content::RESOURCE_TYPE_MAIN_FRAME, url, headers.get()); 121 headers->AddHeader("X-Mod-Pagespeed: 1.2.24.1-2300"); 122 GatherPagespeedData(content::RESOURCE_TYPE_MAIN_FRAME, url, headers.get()); 137 headers->RemoveHeader("X-Mod-Pagespeed"); 140 headers->AddHeader("X-Mod-Pagespeed: Powered By PageSpeed!"); 141 GatherPagespeedData(content::RESOURCE_TYPE_MAIN_FRAME, url, headers.get()); 152 headers->RemoveHeader("X-Mod-Pagespeed"); 155 headers [all...] |
/external/chromium_org/net/spdy/ |
H A D | hpack_huffman_aggregator.cc | 59 SpdyHeaderBlock headers; local 61 request, request_headers, SPDY4, false, &headers); 64 encoder->EncodeHeaderSet(headers, &tmp_out); 67 SpdyHeaderBlock headers; local 68 CreateSpdyHeadersFromHttpResponse(response_headers, &headers); 71 encoder->EncodeHeaderSet(headers, &tmp_out); 90 const HttpResponseHeaders& headers, 96 while (headers.EnumerateHeaderLines(&it, &name, &value)) { 104 (*headers_out)[":status"] = base::IntToString(headers.response_code()); 89 CreateSpdyHeadersFromHttpResponse( const HttpResponseHeaders& headers, SpdyHeaderBlock* headers_out) argument
|
H A D | spdy_test_util_common.cc | 111 // Adds headers and values to a map. 115 // |headers| gets filled in from |extra_headers|. 118 SpdyHeaderBlock* headers) { 128 DCHECK(NULL != headers) << "NULL header map"; 129 // Copy in the headers. 139 if (headers->find(this_header) != headers->end()) { 145 new_value = (*headers)[this_header]; 154 (*headers)[this_header] = new_value; 225 const SpdyHeaderBlock& headers) OVERRID 116 AppendToHeaderBlock(const char* const extra_headers[], int extra_header_count, SpdyHeaderBlock* headers) argument 811 ConstructSpdyControlFrame( scoped_ptr<SpdyHeaderBlock> headers, bool compressed, SpdyStreamId stream_id, RequestPriority request_priority, SpdyFrameType type, SpdyControlFlags flags, SpdyStreamId associated_stream_id) const argument 1073 ConstructInitialSpdyPushFrame( scoped_ptr<SpdyHeaderBlock> headers, int stream_id, int associated_stream_id) argument 1125 ConstructSpdyReply(int stream_id, const SpdyHeaderBlock& headers) argument [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
H A D | render_servlet_test.py | 22 def _Render(self, path, headers=None, host=None): 23 return RenderServlet(Request.ForTest(path, headers=headers, host=host), 77 self.assertTrue(response.headers['Content-Type'] in ( 87 self.assertEqual('application/zip', response.headers['Content-Type']) 94 response.headers['Content-Type']) 103 response.headers.get('Content-Type')) 129 etag = response.headers.get('ETag') 133 response = self._Render(path, headers={ 137 self.assertEqual(content_type, response.headers [all...] |
/external/chromium_org/android_webview/browser/net/ |
H A D | aw_network_delegate.cc | 38 net::HttpRequestHeaders* headers) { 40 DCHECK(headers); 41 headers->SetHeaderIfMissing( 50 net::HttpRequestHeaders* headers) { 53 request, proxy_info.proxy_server(), headers); 58 const net::HttpRequestHeaders& headers) { 35 OnBeforeSendHeaders( net::URLRequest* request, const net::CompletionCallback& callback, net::HttpRequestHeaders* headers) argument 47 OnBeforeSendProxyHeaders( net::URLRequest* request, const net::ProxyInfo& proxy_info, net::HttpRequestHeaders* headers) argument 57 OnSendHeaders(net::URLRequest* request, const net::HttpRequestHeaders& headers) argument
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/tools/ |
H A D | chromevox_webstore_util.py | 85 headers = GetPopulatedHeader(client_secret) 87 conn.request('GET', command, '', headers) 91 headers = GetPopulatedHeader(client_secret) 92 headers = dict(headers.items() + header_additions.items()) 94 conn.request('POST', command, body, headers)
|
/external/chromium_org/third_party/google_appengine_cloudstorage/cloudstorage/ |
H A D | rest_api.py | 160 def do_request_async(self, url, method='GET', headers=None, payload=None, 168 headers = {} if headers is None else dict(headers) 171 headers['authorization'] = 'OAuth ' + self.token 179 headers=headers, follow_redirects=False, 183 headers['authorization'] = 'OAuth ' + self.token 185 url, payload=payload, method=method, headers=headers, [all...] |
H A D | errors.py | 95 def check_status(status, expected, path, headers=None, 103 headers: HTTP request headers. 104 resp_headers: HTTP response headers. 119 'Request headers: %r.\n' 120 'Response headers: %r.\n' 122 (expected, status, path, headers, resp_headers, extras))
|
H A D | storage_api.py | 82 headers={'content-type': 'text/plain'}, payload='blah'. 86 a tuple of (status, headers, content) that represents a HTTP response 115 def do_request_async(self, url, method='GET', headers=None, payload=None, 121 if headers is None: 122 headers = {} 123 if 'x-goog-api-version' not in headers: 124 headers['x-goog-api-version'] = '2' 125 headers['accept-encoding'] = 'gzip, *' 128 url, method=method, headers=headers, payloa [all...] |
/external/apache-http/src/org/apache/http/impl/client/ |
H A D | DefaultProxyAuthenticationHandler.java | 73 Header[] headers = response.getHeaders(AUTH.PROXY_AUTH); 74 return parseChallenges(headers);
|
H A D | DefaultTargetAuthenticationHandler.java | 73 Header[] headers = response.getHeaders(AUTH.WWW_AUTH); 74 return parseChallenges(headers);
|
/external/chromium_org/chrome/browser/resources/options/ |
H A D | password_manager.css | 21 #password-list-headers {
|
/external/chromium_org/content/browser/streams/ |
H A D | stream_url_request_job.cc | 138 return response_info_->headers->GetMimeType(mime_type); 150 return response_info_->headers->response_code(); 154 const net::HttpRequestHeaders& headers) { 156 if (headers.GetHeader(net::HttpRequestHeaders::kRange, &range_header)) { 189 // If we already return the headers on success, we can't change the headers 224 net::HttpResponseHeaders* headers = new net::HttpResponseHeaders(status); local 230 headers->AddHeader(content_type_header); 234 response_info_->headers = headers; 153 SetExtraRequestHeaders( const net::HttpRequestHeaders& headers) argument [all...] |
/external/chromium_org/content/public/browser/ |
H A D | resource_request_details.cc | 29 request->response_info().headers.get() ? 30 request->response_info().headers.get()->response_code() : -1;
|
/external/chromium_org/net/server/ |
H A D | http_server_request_info.cc | 19 headers.find(header_name); 20 if (it != headers.end())
|
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
H A D | MockResponse.java | 38 private List<String> headers = new ArrayList<String>(); field in class:MockResponse 63 result.headers = new ArrayList<String>(result.headers); 88 * Returns the HTTP headers, such as "Content-Length: 0". 91 return headers; 95 * Removes all HTTP headers including any "Content-Length" and 96 * "Transfer-encoding" headers that were added by default. 99 headers.clear(); 108 headers.add(header); 114 * multiple headers wit [all...] |
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
H A D | MockResponse.java | 34 private List<String> headers = new ArrayList<String>(); field in class:MockResponse 59 result.headers = new ArrayList<String>(headers); 82 /** Returns the HTTP headers, such as "Content-Length: 0". */ 84 return headers; 88 * Removes all HTTP headers including any "Content-Length" and 89 * "Transfer-encoding" headers that were added by default. 92 headers.clear(); 101 headers.add(header); 107 * headers wit [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
H A D | OkHeaders.java | 59 return contentLength(request.headers()); 63 return contentLength(response.headers()); 66 public static long contentLength(Headers headers) { argument 67 return stringToLong(headers.get("Content-Length")); 85 public static Map<String, List<String>> toMultimap(Headers headers, String valueForNullKey) { argument 87 for (int i = 0; i < headers.size(); i++) { 88 String fieldName = headers.name(i); 89 String value = headers.value(i);
|
/external/opencv/ |
H A D | libopencv.mk | 4 # Make sure bionic is first so we can include system headers.
|