Searched refs:headers (Results 26 - 50 of 974) sorted by relevance

1234567891011>>

/external/chromium_org/components/data_reduction_proxy/common/
H A Ddata_reduction_proxy_headers_unittest.cc20 const char* headers; member in struct:data_reduction_proxy::__anon6456
97 std::string headers(tests[i].headers);
98 HeadersToRaw(&headers);
100 new net::HttpResponseHeaders(headers));
114 const char* headers; member in struct:data_reduction_proxy::__anon6457
347 std::string headers(tests[i].headers);
348 HeadersToRaw(&headers);
350 new net::HttpResponseHeaders(headers));
366 std::string headers = local
385 const char* headers; member in struct:data_reduction_proxy::__anon6458
522 const char* headers; member in struct:data_reduction_proxy::__anon6459
637 const char* headers; member in struct:data_reduction_proxy::__anon6460
681 const char* headers; member in struct:data_reduction_proxy::__anon6461
725 const char* headers; member in struct:data_reduction_proxy::__anon6462
769 const char* headers; member in struct:data_reduction_proxy::__anon6463
814 const char* headers; member in struct:data_reduction_proxy::__anon6464
[all...]
H A Ddata_reduction_proxy_headers.cc52 const net::HttpResponseHeaders* headers,
55 DCHECK(headers);
63 while (headers->EnumerateHeader(&iter, kChromeProxyHeader, &value)) {
77 bool ParseHeadersAndSetBypassDuration(const net::HttpResponseHeaders* headers, argument
80 DCHECK(headers);
88 while (headers->EnumerateHeader(&iter, kChromeProxyHeader, &value)) {
113 bool ParseHeadersAndSetProxyInfo(const net::HttpResponseHeaders* headers, argument
129 headers, kChromeProxyActionBlock, &proxy_info->bypass_duration)) {
137 headers, kChromeProxyActionBypass, &proxy_info->bypass_duration)) {
148 if (headers
51 GetDataReductionProxyActionValue( const net::HttpResponseHeaders* headers, const std::string& action_prefix, std::string* action_value) argument
159 HasDataReductionProxyViaHeader(const net::HttpResponseHeaders* headers, bool* has_intermediary) argument
195 GetDataReductionProxyBypassType( const net::HttpResponseHeaders* headers, DataReductionProxyInfo* data_reduction_proxy_info) argument
251 GetDataReductionProxyActionFingerprintChromeProxy( const net::HttpResponseHeaders* headers, std::string* chrome_proxy_fingerprint) argument
260 GetDataReductionProxyActionFingerprintVia( const net::HttpResponseHeaders* headers, std::string* via_fingerprint) argument
269 GetDataReductionProxyActionFingerprintOtherHeaders( const net::HttpResponseHeaders* headers, std::string* other_headers_fingerprint) argument
278 GetDataReductionProxyActionFingerprintContentLength( const net::HttpResponseHeaders* headers, std::string* content_length_fingerprint) argument
287 GetDataReductionProxyHeaderWithFingerprintRemoved( const net::HttpResponseHeaders* headers, std::vector<std::string>* values) argument
[all...]
/external/chromium_org/net/tools/balsa/
H A Dbalsa_headers_token_utils.h24 static bool CheckHeaderForLastToken(const BalsaHeaders& headers,
31 static void TokenizeHeaderValue(const BalsaHeaders& headers,
39 BalsaHeaders* headers);
51 const BalsaHeaders& headers,
/external/chromium_org/net/websockets/
H A Dwebsocket_net_log_params.h16 const std::string* headers,
/external/chromium_org/net/spdy/
H A Dspdy_headers_block_parser_test.cc23 // A mock the handler class to check that we parse out the correct headers
49 // Create a header block with a specified number of headers.
51 string headers; local
53 // First, write the number of headers in the header block.
54 headers += EncodeLength(num_headers);
66 headers += EncodeLength(key.length());
67 headers += key;
77 headers += EncodeLength(value.length());
78 headers += value;
80 return headers;
222 string headers = EncodeLength( local
234 string headers = EncodeLength(1) + EncodeLength( local
244 string headers = CreateHeaders(1, false) + "foobar"; local
[all...]
H A Dspdy_header_block.h16 // A data structure for holding a set of headers from either a
23 const SpdyHeaderBlock* headers,
27 // to |headers|. |event_param| must have been created by
29 // |headers|.
32 SpdyHeaderBlock* headers);
H A Dhpack_encoder_test.cc178 map<string, string> headers; local
179 headers[key_2_->name()] = key_2_->value();
180 CompareWithExpectedEncoding(headers);
186 map<string, string> headers; local
187 headers[static_->name()] = static_->value();
188 CompareWithExpectedEncoding(headers);
195 map<string, string> headers; local
196 headers[static_->name()] = static_->value();
197 CompareWithExpectedEncoding(headers);
205 map<string, string> headers; local
218 map<string, string> headers; local
234 map<string, string> headers; local
247 map<string, string> headers; local
258 map<string, string> headers; local
292 map<string, string> headers; local
306 map<string, string> headers; local
321 map<string, string> headers; local
343 map<string, string> headers; local
358 map<string, string> headers; local
455 map<string, string> headers; local
[all...]
H A Dspdy_header_block.cc13 const SpdyHeaderBlock* headers,
17 for (SpdyHeaderBlock::const_iterator it = headers->begin();
18 it != headers->end(); ++it) {
24 dict->Set("headers", headers_dict);
30 SpdyHeaderBlock* headers) {
31 headers->clear();
38 !dict->GetDictionary("headers", &header_dict)) {
44 if (!it.value().GetAsString(&(*headers)[it.key()])) {
45 headers->clear();
12 SpdyHeaderBlockNetLogCallback( const SpdyHeaderBlock* headers, NetLog::LogLevel log_level) argument
28 SpdyHeaderBlockFromNetLogParam( const base::Value* event_param, SpdyHeaderBlock* headers) argument
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/util/
H A DCommonResources.java17 // Content-type headers used for HTML code.
22 // Content-type headers used for javascript code.
27 // Content-type headers used for png images.
34 List<Pair<String, String>> headers = new ArrayList<Pair<String, String>>();
35 headers.add(Pair.create("Content-Type", contentType));
36 if (disableCache) headers.add(Pair.create("Cache-Control", "no-store"));
37 return headers;
91 public static String makeHtmlPageFrom(String headers, String body) { argument
101 headers +
109 public static String makeHtmlPageWithSimpleLinkTo(String headers, Strin argument
[all...]
/external/chromium_org/net/http/
H A Dpartial_data.h36 // Performs initialization of the object by examining the request |headers|
39 bool Init(const HttpRequestHeaders& headers);
41 // Sets the headers that we should use to make byte range requests. This is a
42 // subset of the request extra headers, with byte-range related headers
44 void SetHeaders(const HttpRequestHeaders& headers);
46 // Restores the byte-range headers, by appending the byte range to the headers
48 void RestoreHeaders(HttpRequestHeaders* headers) const;
59 // Builds the required |headers| t
[all...]
H A Dpartial_data.cc23 // The headers that we have to process.
113 bool PartialData::Init(const HttpRequestHeaders& headers) { argument
115 if (!headers.GetHeader(HttpRequestHeaders::kRange, &range_header))
135 void PartialData::SetHeaders(const HttpRequestHeaders& headers) { argument
137 extra_headers_.CopyFrom(headers);
140 void PartialData::RestoreHeaders(HttpRequestHeaders* headers) const {
145 headers->CopyFrom(extra_headers_);
150 headers->SetHeader(HttpRequestHeaders::kRange,
153 headers->SetHeader(HttpRequestHeaders::kRange,
199 HttpRequestHeaders* headers) {
198 PrepareCacheValidation(disk_cache::Entry* entry, HttpRequestHeaders* headers) argument
243 UpdateFromStoredHeaders(const HttpResponseHeaders* headers, disk_cache::Entry* entry, bool truncated) argument
323 ResponseHeadersOK(const HttpResponseHeaders* headers) argument
377 FixResponseHeaders(HttpResponseHeaders* headers, bool success) argument
404 FixContentLength(HttpResponseHeaders* headers) argument
[all...]
/external/chromium_org/net/url_request/
H A Durl_range_request_job.cc22 const HttpRequestHeaders& headers) {
24 if (headers.GetHeader(HttpRequestHeaders::kRange, &range_header)) {
21 SetExtraRequestHeaders( const HttpRequestHeaders& headers) argument
H A Durl_request_throttler_header_adapter.cc12 HttpResponseHeaders* headers)
13 : response_header_(headers) {
11 URLRequestThrottlerHeaderAdapter( HttpResponseHeaders* headers) argument
H A Durl_request_data_job_unittest.cc21 scoped_refptr<net::HttpResponseHeaders> headers(
27 GURL("data:,Hello"), &mime_type, &charset, &data, headers.get()));
33 const net::HttpVersion& version = headers->GetParsedHttpVersion();
36 EXPECT_EQ("OK", headers->GetStatusText());
38 EXPECT_TRUE(headers->GetNormalizedHeader("Content-Type", &value));
42 headers->GetNormalizedHeader("Access-Control-Allow-Origin", &value));
50 scoped_refptr<net::HttpResponseHeaders> headers(
56 GURL("bogus"), &mime_type, &charset, &data, headers.get()));
63 scoped_refptr<net::HttpResponseHeaders> headers(
72 &mime_type, &charset, &data, headers
[all...]
H A Durl_request_simple_job_unittest.cc74 void StartRequest(const HttpRequestHeaders* headers) { argument
75 if (headers)
76 request_->SetExtraRequestHeaders(*headers);
102 HttpRequestHeaders headers; local
103 headers.SetHeader(
108 StartRequest(&headers);
115 HttpRequestHeaders headers; local
122 headers.SetHeader(HttpRequestHeaders::kRange, range);
124 StartRequest(&headers);
131 HttpRequestHeaders headers; local
[all...]
/external/chromium_org/chrome/common/extensions/docs/static/js/
H A Dtabs.js39 var headers = tabs.getElementsByTagName('header'),
47 for (var i=0; i<headers.length; i++) {
48 if (headers[i] === e.target) {
49 headers[i].classList.remove('unselected');
53 headers[i].classList.add('unselected');
65 var headers = tab.getElementsByTagName('header');
69 if (headers.length==0 || contents.length==0)
72 for (var j=0; j<headers.length; j++) {
74 && tabGroupSelectedValue===headers[j].getAttribute("data-value");
77 headers[
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/pem/
H A DPemObject.java13 private List headers; field in class:PemObject
17 * Generic constructor for object without headers.
28 * Generic constructor for object with headers.
31 * @param headers a list of PemHeader objects.
34 public PemObject(String type, List headers, byte[] content) argument
37 this.headers = Collections.unmodifiableList(headers);
48 return headers;
/external/chromium_org/chrome/browser/android/
H A Dintercept_download_resource_throttle.cc49 net::HttpRequestHeaders headers;
50 if (!request_->GetFullRequestHeaders(&headers))
58 if (headers.HasHeader(net::HttpRequestHeaders::kAuthorization) ||
59 !(request_->response_info().headers &&
61 request_->response_info().headers, NULL))) {
/external/chromium_org/net/disk_cache/blockfile/
H A Dblock_bitmaps_v3_unittest.cc17 disk_cache::BlockFileHeader headers[kNumHeaders]; local
19 memset(&headers[i], 0, sizeof(headers[i]));
20 headers[i].magic = disk_cache::kBlockMagic;
21 headers[i].version = disk_cache::kBlockCurrentVersion;
22 headers[i].this_file = static_cast<int16>(i);
23 headers[i].empty[3] = 200;
24 headers[i].max_entries = 800;
25 bitmaps.push_back(disk_cache::BlockHeader(&headers[i]));
54 uint8* buffer = reinterpret_cast<uint8*>(&headers[
[all...]
/external/chromium_org/net/tools/flip_server/
H A Dspdy_interface.cc126 const SpdyHeaderBlock& headers,
131 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: # headers: " << headers.size();
133 SpdyHeaderBlock::const_iterator method = headers.end();
134 SpdyHeaderBlock::const_iterator host = headers.end();
135 SpdyHeaderBlock::const_iterator path = headers.end();
136 SpdyHeaderBlock::const_iterator scheme = headers.end();
137 SpdyHeaderBlock::const_iterator version = headers.end();
138 SpdyHeaderBlock::const_iterator url = headers.end();
143 url = headers
124 SpdyHandleNewStream(SpdyStreamId stream_id, SpdyPriority priority, const SpdyHeaderBlock& headers, std::string& http_data, bool* is_https_scheme) argument
243 OnSynStream(SpdyStreamId stream_id, SpdyStreamId associated_stream_id, SpdyPriority priority, bool fin, bool unidirectional, const SpdyHeaderBlock& headers) argument
279 OnSynReply(SpdyStreamId stream_id, bool fin, const SpdyHeaderBlock& headers) argument
287 OnHeaders(SpdyStreamId stream_id, bool fin, const SpdyHeaderBlock& headers) argument
386 SendSynStream(uint32 stream_id, const BalsaHeaders& headers) argument
390 SendSynReply(uint32 stream_id, const BalsaHeaders& headers) argument
422 CopyHeaders(SpdyHeaderBlock& dest, const BalsaHeaders& headers) argument
449 SendSynStreamImpl(uint32 stream_id, const BalsaHeaders& headers) argument
492 SendSynReplyImpl(uint32 stream_id, const BalsaHeaders& headers) argument
575 BalsaHeaders headers; local
583 BalsaHeaders headers; local
[all...]
/external/chromium_org/net/test/embedded_test_server/
H A Dhttp_request_unittest.cc16 // Also, check multi-line headers as well as multiple requests in the same
40 ASSERT_EQ(3u, request->headers.size());
42 EXPECT_EQ(1u, request->headers.count("Host"));
43 EXPECT_EQ(1u, request->headers.count("Multi-line-header"));
44 EXPECT_EQ(1u, request->headers.count("Content-Length"));
46 EXPECT_EQ("localhost:1234", request->headers["Host"]);
47 EXPECT_EQ("abcd efgh ijkl", request->headers["Multi-line-header"]);
48 EXPECT_EQ("10", request->headers["Content-Length"]);
66 EXPECT_EQ(1u, request->headers.count("Content-Length"));
67 EXPECT_EQ("0", request->headers["Conten
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
H A DResponseInit.h30 DictionaryHelper::get(options, "headers", headers);
31 if (!headers) {
32 DictionaryHelper::get(options, "headers", headersDictionary);
38 Member<Headers> headers; member in class:blink::ResponseInit
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
H A DrequestHeadersView.css7 .request-headers-view {
19 .request-headers-view.visible {
23 .request-headers-view .outline-disclosure > .parent {
28 .request-headers-view .outline-disclosure > .parent > .section {
32 .request-headers-view .outline-disclosure .children li {
36 .request-headers-view .outline-disclosure .caution {
42 .request-headers-view .outline-disclosure li.expanded .header-count {
46 .request-headers-view .outline-disclosure li .header-toggle {
50 .request-headers-view .outline-disclosure li .status-from-cache {
54 .request-headers
[all...]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DRequest.java39 private final Headers headers; field in class:Request
50 this.headers = builder.headers.build();
76 public Headers headers() { method in class:Request
77 return headers;
81 return headers.get(name);
84 public List<String> headers(String name) { method in class:Request
85 return headers.values(name);
101 return headers;
114 return result != null ? result : (parsedHeaders = new ParsedHeaders(headers));
135 ParsedHeaders(Headers headers) argument
235 private Headers.Builder headers; field in class:Request.Builder
290 headers(Headers headers) argument
[all...]
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/
H A Ddata_socket.cc161 // Extra headers are assumed to have a separator per header.
195 const char* headers = request_headers_.data() + i + 2; local
197 if (!ParseContentLengthAndType(headers, len))
241 bool DataSocket::ParseContentLengthAndType(const char* headers, size_t length) { argument
245 const char* end = headers + length;
246 while (headers && headers < end) {
247 if (!isspace(headers[0])) {
250 if ((headers + ARRAYSIZE(kContentLength)) < end &&
251 strncmp(headers, kContentLengt
[all...]

Completed in 1018 milliseconds

1234567891011>>