/external/chromium_org/net/http/ |
http_request_headers_unittest.cc | 16 HttpRequestHeaders headers; local 17 headers.SetHeader("Foo", "bar"); 18 EXPECT_TRUE(headers.HasHeader("foo")); 19 EXPECT_TRUE(headers.HasHeader("Foo")); 20 EXPECT_FALSE(headers.HasHeader("Fo")); 22 const HttpRequestHeaders& headers_ref = headers; 29 HttpRequestHeaders headers; local 30 headers.SetHeader("Foo", "bar"); 31 EXPECT_EQ("Foo: bar\r\n\r\n", headers.ToString()); 35 HttpRequestHeaders headers; local 43 HttpRequestHeaders headers; local 50 HttpRequestHeaders headers; local 57 HttpRequestHeaders headers; local 66 HttpRequestHeaders headers; local 73 HttpRequestHeaders headers; local 81 HttpRequestHeaders headers; local 88 HttpRequestHeaders headers; local 95 HttpRequestHeaders headers; local 103 HttpRequestHeaders headers; local 109 HttpRequestHeaders headers; local 115 HttpRequestHeaders headers; local 121 HttpRequestHeaders headers; local 127 HttpRequestHeaders headers; local 133 HttpRequestHeaders headers; local 139 HttpRequestHeaders headers; local 145 HttpRequestHeaders headers; local 157 HttpRequestHeaders headers; local 169 HttpRequestHeaders headers; local [all...] |
/external/chromium/net/http/ |
http_request_headers_unittest.cc | 14 HttpRequestHeaders headers; local 15 headers.SetHeader("Foo", "bar"); 16 EXPECT_TRUE(headers.HasHeader("foo")); 17 EXPECT_TRUE(headers.HasHeader("Foo")); 18 EXPECT_FALSE(headers.HasHeader("Fo")); 20 const HttpRequestHeaders& headers_ref = headers; 27 HttpRequestHeaders headers; local 28 headers.SetHeader("Foo", "bar"); 29 EXPECT_EQ("Foo: bar\r\n\r\n", headers.ToString()); 33 HttpRequestHeaders headers; local 41 HttpRequestHeaders headers; local 48 HttpRequestHeaders headers; local 55 HttpRequestHeaders headers; local 64 HttpRequestHeaders headers; local 71 HttpRequestHeaders headers; local 79 HttpRequestHeaders headers; local 86 HttpRequestHeaders headers; local 93 HttpRequestHeaders headers; local 101 HttpRequestHeaders headers; local 107 HttpRequestHeaders headers; local 113 HttpRequestHeaders headers; local 119 HttpRequestHeaders headers; local 125 HttpRequestHeaders headers; local 131 HttpRequestHeaders headers; local 137 HttpRequestHeaders headers; local 143 HttpRequestHeaders headers; local 155 HttpRequestHeaders headers; local [all...] |
http_net_log_params.cc | 15 const HttpRequestHeaders& headers) 17 headers_.CopyFrom(headers); 23 ListValue* headers = new ListValue(); local 26 headers->Append( 31 dict->Set("headers", headers); 38 const scoped_refptr<HttpResponseHeaders>& headers) 39 : headers_(headers) {} 43 ListValue* headers = new ListValue(); local 44 headers->Append(new StringValue(headers_->GetStatusLine())) [all...] |
/external/chromium_org/net/spdy/ |
spdy_header_block_unittest.cc | 17 SpdyHeaderBlock headers; local 18 headers["A"] = "a"; 19 headers["B"] = "b"; 22 SpdyHeaderBlockNetLogCallback(&headers, NetLog::LOG_ALL_BUT_BYTES)); 26 EXPECT_EQ(headers, headers2);
|
spdy_websocket_test_util.cc | 22 std::string SpdyWebSocketTestUtil::GetHeader(const SpdyHeaderBlock& headers, 24 SpdyHeaderBlock::const_iterator it = headers.find(GetHeaderKey(key)); 25 return (it == headers.end()) ? "" : it->second; 31 SpdyHeaderBlock* headers) const { 32 (*headers)[GetHeaderKey(key)] = value; 40 scoped_ptr<SpdyHeaderBlock> headers(new SpdyHeaderBlock()); 41 SetHeader("path", path, headers.get()); 42 SetHeader("host", host, headers.get()); 43 SetHeader("version", "WebSocket/13", headers.get()); 44 SetHeader("scheme", "ws", headers.get()) [all...] |
spdy_http_utils.cc | 23 bool SpdyHeadersToHttpResponse(const SpdyHeaderBlock& headers, 31 // The "status" and "version" headers are required. 33 it = headers.find(status_key); 34 if (it == headers.end()) 38 it = headers.find(version_key); 39 if (it == headers.end()) 47 for (it = headers.begin(); it != headers.end(); ++it) { 50 // individual headers for each value in the list. 77 response->headers = new HttpResponseHeaders(raw_headers) [all...] |
/external/chromium_org/net/websockets/ |
websocket_handshake_handler_spdy_unittest.cc | 55 SpdyHeaderBlock headers; local 57 &headers, 61 EXPECT_EQ(url.path(), spdy_util_.GetHeader(headers, "path")); 62 EXPECT_TRUE(spdy_util_.GetHeader(headers, "upgrade").empty()); 63 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Upgrade").empty()); 64 EXPECT_TRUE(spdy_util_.GetHeader(headers, "connection").empty()); 65 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Connection").empty()); 66 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Sec-WebSocket-Key").empty()); 67 EXPECT_TRUE(spdy_util_.GetHeader(headers, "sec-websocket-key").empty()); 68 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Sec-WebSocket-Version").empty()) 129 SpdyHeaderBlock headers; local [all...] |
websocket_net_log_params.cc | 13 const std::string* headers, 19 size_t headers_size = headers->size(); 23 ((*headers)[pos] == '\r' && 24 pos + 1 < headers_size && (*headers)[pos + 1] == '\n')) { 25 std::string entry = headers->substr(last, pos - last); 35 key += base::StringPrintf("\\x%02x", (*headers)[pos] & 0xff); 45 dict->Set("headers", header_list);
|
websocket_net_log_params.h | 16 const std::string* headers,
|
/external/chromium/net/websockets/ |
websocket_handshake_handler_unittest.cc | 231 response_info.headers = new HttpResponseHeaders(raw_headers); 233 EXPECT_TRUE(StartsWithASCII(response_info.headers->GetStatusLine(), 235 EXPECT_FALSE(response_info.headers->HasHeader("Upgrade")); 236 EXPECT_FALSE(response_info.headers->HasHeader("Connection")); 237 EXPECT_TRUE(response_info.headers->HasHeaderValue("Sec-WebSocket-Origin", 239 EXPECT_TRUE(response_info.headers->HasHeaderValue("Sec-WebSocket-Location", 241 EXPECT_TRUE(response_info.headers->HasHeaderValue("Sec-WebSocket-Protocol", 283 spdy::SpdyHeaderBlock headers; local 284 ASSERT_TRUE(request_handler.GetRequestHeaderBlock(url, &headers, &challenge)); 286 EXPECT_EQ(url.spec(), headers["url"]) 353 spdy::SpdyHeaderBlock headers; local [all...] |
websocket_net_log_params.cc | 10 const std::string& headers) 11 : headers_(headers) { 16 ListValue* headers = new ListValue(); local 29 headers->Append(new StringValue(entry)); 37 headers->Append(new StringValue(key)); 45 dict->Set("headers", headers);
|
/external/apache-http/src/org/apache/http/message/ |
HeaderGroup.java | 43 * A class for combining a set of headers. 44 * This class allows for multiple headers with the same name and 45 * keeps track of the order in which headers were added. 53 /** The list of headers for this group, in the order in which they were added */ 54 private List headers; field in class:HeaderGroup 60 this.headers = new ArrayList(16); 64 * Removes any contained headers. 67 headers.clear(); 80 headers.add(header); 92 headers.remove(header) 145 Header[] headers = getHeaders(name); local [all...] |
/external/chromium_org/net/quic/ |
quic_spdy_compressor_test.cc | 28 SpdyHeaderBlock headers; local 29 headers[":host"] = "www.google.com"; 30 headers[":path"] = "/index.hml"; 31 headers[":scheme"] = "https"; 33 string compressed_headers = compressor.CompressHeaders(headers); 40 EXPECT_EQ(SpdyUtils::SerializeUncompressedHeaders(headers),
|
quic_spdy_decompressor_test.cc | 27 SpdyHeaderBlock headers; local 28 headers[":host"] = "www.google.com"; 29 headers[":path"] = "/index.hml"; 30 headers[":scheme"] = "https"; 33 string compressed_headers = compressor_.CompressHeaders(headers).substr(4); 37 EXPECT_EQ(SpdyUtils::SerializeUncompressedHeaders(headers), visitor_.data()); 42 SpdyHeaderBlock headers; local 43 headers[":host"] = "www.google.com"; 44 headers[":path"] = "/index.hml"; 45 headers[":scheme"] = "https" 72 SpdyHeaderBlock headers; local 86 SpdyHeaderBlock headers; local [all...] |
spdy_utils.cc | 17 string SpdyUtils::SerializeUncompressedHeaders(const SpdyHeaderBlock& headers) { 18 int length = SpdyFramer::GetSerializedLength(SPDY3, &headers); 20 SpdyFramer::WriteHeaderBlock(&builder, SPDY3, &headers);
|
spdy_utils.h | 18 const SpdyHeaderBlock& headers);
|
/frameworks/volley/src/com/android/volley/ |
NetworkResponse.java | 25 * Data and headers returned from {@link Network#performRequest(Request)}. 32 * @param headers Headers returned with this response, or null for none 35 public NetworkResponse(int statusCode, byte[] data, Map<String, String> headers, 39 this.headers = headers; 47 public NetworkResponse(byte[] data, Map<String, String> headers) { 48 this(HttpStatus.SC_OK, data, headers, false); 57 /** Response headers. */ 58 public final Map<String, String> headers; field in class:NetworkResponse [all...] |
/external/chromium_org/tools/telemetry/third_party/davclient/ |
davclient.py | 63 self.headers = {'Host':self._url[1], 67 def _request(self, method, path='', body=None, headers=None): 71 if headers is None: 72 headers = copy.copy(self.headers) 74 new_headers = copy.copy(self.headers) 75 new_headers.update(headers) 76 headers = new_headers 85 self._connection.request(method, path, body, headers) 108 self.headers['Authorization'] = aut [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
servlet.py | 8 def __init__(self, path, host, headers): 11 self.headers = headers 14 def ForTest(path, host='http://developer.chrome.com', headers=None): 15 return Request(path, host, headers or {}) 18 return 'Request(path=%s, host=%s, headers=%s)' % ( 19 self.path, self.host, self.headers) 51 def __init__(self, content=None, headers=None, status=None): 55 self.headers = {} 56 if headers is not None [all...] |
/external/chromium/net/spdy/ |
spdy_http_utils.cc | 22 bool SpdyHeadersToHttpResponse(const spdy::SpdyHeaderBlock& headers, 27 // The "status" and "version" headers are required. 29 it = headers.find("status"); 30 if (it == headers.end()) 35 it = headers.find("version"); 36 if (it == headers.end()) 46 for (it = headers.begin(); it != headers.end(); ++it) { 49 // individual headers for each value in the list. 73 response->headers = new HttpResponseHeaders(raw_headers) [all...] |
/external/chromium_org/net/tools/flip_server/ |
mem_cache_test.cc | 63 ASSERT_EQ("HTTP/1.1", hello->headers()->response_version()); 64 ASSERT_EQ("200", hello->headers()->response_code()); 65 ASSERT_EQ("OK", hello->headers()->response_reason_phrase()); 66 ASSERT_EQ(4, std::distance(hello->headers()->header_lines_begin(), 67 hello->headers()->header_lines_end())); 68 ASSERT_TRUE(hello->headers()->HasHeader("key1")); 69 ASSERT_TRUE(hello->headers()->HasHeader("key2")); 70 ASSERT_TRUE(hello->headers()->HasHeader("transfer-encoding")); 71 ASSERT_TRUE(hello->headers()->HasHeader("connection")); 72 ASSERT_EQ("value1", hello->headers()->GetHeaderPosition("key1")->second) [all...] |
balsa_headers_token_utils.cc | 11 const BalsaHeaders& headers, 17 const char* stream_begin = headers.GetPtr(header_line.buffer_base_idx); 28 const base::StringPiece& key, BalsaHeaders* headers) { 30 headers->GetHeaderLinesIterator(key, headers->header_lines_.begin()); 31 if (it == headers->header_lines_.end()) { 41 it = headers->GetHeaderLinesIterator(key, it + 1); 43 while (it != headers->header_lines_.end()); 47 TokenizeHeaderLine(*headers, *header_line, &tokens); 60 const char* stream_begin = headers->GetPtr(header_line->buffer_base_idx) [all...] |
balsa_headers_token_utils.h | 24 static bool CheckHeaderForLastToken(const BalsaHeaders& headers, 31 static void TokenizeHeaderValue(const BalsaHeaders& headers, 39 BalsaHeaders* headers); 51 const BalsaHeaders& headers,
|
/external/chromium/net/tools/flip_server/ |
balsa_headers_token_utils.cc | 11 const BalsaHeaders& headers, 17 const char* stream_begin = headers.GetPtr(header_line.buffer_base_idx); 28 const base::StringPiece& key, BalsaHeaders* headers) { 30 headers->GetHeaderLinesIterator(key, headers->header_lines_.begin()); 31 if (it == headers->header_lines_.end()) { 41 it = headers->GetHeaderLinesIterator(key, it + 1); 43 while (it != headers->header_lines_.end()); 47 TokenizeHeaderLine(*headers, *header_line, &tokens); 60 const char* stream_begin = headers->GetPtr(header_line->buffer_base_idx) [all...] |
balsa_headers_token_utils.h | 25 static bool CheckHeaderForLastToken(const BalsaHeaders& headers, 32 static void TokenizeHeaderValue(const BalsaHeaders& headers, 40 BalsaHeaders* headers); 52 const BalsaHeaders& headers,
|