/external/chromium_org/net/http/ |
D | http_request_headers_unittest.cc | 16 HttpRequestHeaders headers; in TEST() local 17 headers.SetHeader("Foo", "bar"); in TEST() 18 EXPECT_TRUE(headers.HasHeader("foo")); in TEST() 19 EXPECT_TRUE(headers.HasHeader("Foo")); in TEST() 20 EXPECT_FALSE(headers.HasHeader("Fo")); in TEST() 22 const HttpRequestHeaders& headers_ref = headers; in TEST() 29 HttpRequestHeaders headers; in TEST() local 30 headers.SetHeader("Foo", "bar"); in TEST() 31 EXPECT_EQ("Foo: bar\r\n\r\n", headers.ToString()); in TEST() 35 HttpRequestHeaders headers; in TEST() local [all …]
|
D | http_response_headers_unittest.cc | 32 void HeadersToRaw(std::string* headers) { in HeadersToRaw() argument 33 std::replace(headers->begin(), headers->end(), '\n', '\0'); in HeadersToRaw() 34 if (!headers->empty()) in HeadersToRaw() 35 *headers += '\0'; in HeadersToRaw() 55 const scoped_refptr<net::HttpResponseHeaders>& headers() { return headers_; } in headers() function in __anon9f2d4c030111::HttpResponseHeadersCacheControlTest 66 EXPECT_TRUE(headers()->GetMaxAgeValue(&max_age_value)); in GetMaxAgeValue() 76 headers()->GetStaleWhileRevalidateValue(&stale_while_revalidate_value)); in GetStaleWhileRevalidateValue() 97 std::string headers; in TEST_P() local 100 parsed->GetNormalizedHeaders(&headers); in TEST_P() 103 std::replace(headers.begin(), headers.end(), ' ', '_'); in TEST_P() [all …]
|
D | partial_data.cc | 113 bool PartialData::Init(const HttpRequestHeaders& headers) { in Init() argument 115 if (!headers.GetHeader(HttpRequestHeaders::kRange, &range_header)) in Init() 135 void PartialData::SetHeaders(const HttpRequestHeaders& headers) { in SetHeaders() argument 137 extra_headers_.CopyFrom(headers); in SetHeaders() 140 void PartialData::RestoreHeaders(HttpRequestHeaders* headers) const { in RestoreHeaders() 145 headers->CopyFrom(extra_headers_); in RestoreHeaders() 150 headers->SetHeader(HttpRequestHeaders::kRange, in RestoreHeaders() 153 headers->SetHeader(HttpRequestHeaders::kRange, in RestoreHeaders() 199 HttpRequestHeaders* headers) { in PrepareCacheValidation() argument 207 headers->CopyFrom(extra_headers_); in PrepareCacheValidation() [all …]
|
/external/chromium_org/tools/telemetry/third_party/davclient/ |
D | davclient.py | 63 self.headers = {'Host':self._url[1], 67 def _request(self, method, path='', body=None, headers=None): argument 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'] = auth 112 def get(self, path, headers=None): argument [all …]
|
/external/chromium_org/net/spdy/ |
D | hpack_round_trip_test.cc | 60 map<string, string> headers; in TEST_F() local 61 headers[":status"] = "302"; in TEST_F() 62 headers["cache-control"] = "private"; in TEST_F() 63 headers["date"] = "Mon, 21 Oct 2013 20:13:21 GMT"; in TEST_F() 64 headers["location"] = "https://www.example.com"; in TEST_F() 65 EXPECT_TRUE(RoundTrip(headers)); in TEST_F() 68 map<string, string> headers; in TEST_F() local 69 headers[":status"] = "200"; in TEST_F() 70 headers["cache-control"] = "private"; in TEST_F() 71 headers["date"] = "Mon, 21 Oct 2013 20:13:21 GMT"; in TEST_F() [all …]
|
D | spdy_http_utils.cc | 27 SpdyHeaderBlock* headers) { in AddSpdyHeader() argument 28 if (headers->find(name) == headers->end()) { in AddSpdyHeader() 29 (*headers)[name] = value; in AddSpdyHeader() 31 (*headers)[name] += '\0' + value; in AddSpdyHeader() 37 bool SpdyHeadersToHttpResponse(const SpdyHeaderBlock& headers, in SpdyHeadersToHttpResponse() argument 48 it = headers.find(status_key); in SpdyHeadersToHttpResponse() 49 if (it == headers.end()) in SpdyHeadersToHttpResponse() 56 it = headers.find(version_key); in SpdyHeadersToHttpResponse() 57 if (it == headers.end()) in SpdyHeadersToHttpResponse() 65 for (it = headers.begin(); it != headers.end(); ++it) { in SpdyHeadersToHttpResponse() [all …]
|
D | hpack_encoder_test.cc | 178 map<string, string> headers; in TEST_F() local 179 headers[key_2_->name()] = key_2_->value(); in TEST_F() 180 CompareWithExpectedEncoding(headers); in TEST_F() 186 map<string, string> headers; in TEST_F() local 187 headers[static_->name()] = static_->value(); in TEST_F() 188 CompareWithExpectedEncoding(headers); in TEST_F() 195 map<string, string> headers; in TEST_F() local 196 headers[static_->name()] = static_->value(); in TEST_F() 197 CompareWithExpectedEncoding(headers); in TEST_F() 205 map<string, string> headers; in TEST_F() local [all …]
|
D | spdy_websocket_test_util.cc | 17 std::string SpdyWebSocketTestUtil::GetHeader(const SpdyHeaderBlock& headers, in GetHeader() argument 19 SpdyHeaderBlock::const_iterator it = headers.find(GetHeaderKey(key)); in GetHeader() 20 return (it == headers.end()) ? "" : it->second; in GetHeader() 26 SpdyHeaderBlock* headers) const { in SetHeader() 27 (*headers)[GetHeaderKey(key)] = value; in SetHeader() 35 scoped_ptr<SpdyHeaderBlock> headers(new SpdyHeaderBlock()); in ConstructSpdyWebSocketSynStream() local 36 SetHeader("path", path, headers.get()); in ConstructSpdyWebSocketSynStream() 37 SetHeader("host", host, headers.get()); in ConstructSpdyWebSocketSynStream() 38 SetHeader("version", "WebSocket/13", headers.get()); in ConstructSpdyWebSocketSynStream() 39 SetHeader("scheme", "ws", headers.get()); in ConstructSpdyWebSocketSynStream() [all …]
|
D | spdy_headers_block_parser_test.cc | 51 string headers; in CreateHeaders() local 54 headers += EncodeLength(num_headers); in CreateHeaders() 66 headers += EncodeLength(key.length()); in CreateHeaders() 67 headers += key; in CreateHeaders() 77 headers += EncodeLength(value.length()); in CreateHeaders() 78 headers += value; in CreateHeaders() 80 return headers; in CreateHeaders() 123 string headers(CreateHeaders(1, false)); in TEST_P() local 131 EXPECT_CALL(handler_, OnHeaderBlockEnd(1, headers.length())).Times(1); in TEST_P() 134 HandleControlFrameHeadersData(1, headers.c_str(), headers.length())); in TEST_P() [all …]
|
D | buffered_spdy_framer_unittest.cc | 46 const SpdyHeaderBlock& headers) OVERRIDE { in OnSynStream() argument 50 headers_ = headers; in OnSynStream() 55 const SpdyHeaderBlock& headers) OVERRIDE { in OnSynReply() argument 59 headers_ = headers; in OnSynReply() 64 const SpdyHeaderBlock& headers) OVERRIDE { in OnHeaders() argument 68 headers_ = headers; in OnHeaders() 119 const SpdyHeaderBlock& headers) OVERRIDE { in OnPushPromise() argument 125 headers_ = headers; in OnPushPromise() 237 SpdyHeaderBlock headers; in TEST_P() local 238 headers["aa"] = "vv"; in TEST_P() [all …]
|
/external/chromium_org/net/websockets/ |
D | websocket_handshake_handler_spdy_test.cc | 54 SpdyHeaderBlock headers; in TEST_P() local 56 &headers, in TEST_P() 60 EXPECT_EQ(url.path(), spdy_util_.GetHeader(headers, "path")); in TEST_P() 61 EXPECT_TRUE(spdy_util_.GetHeader(headers, "upgrade").empty()); in TEST_P() 62 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Upgrade").empty()); in TEST_P() 63 EXPECT_TRUE(spdy_util_.GetHeader(headers, "connection").empty()); in TEST_P() 64 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Connection").empty()); in TEST_P() 65 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Sec-WebSocket-Key").empty()); in TEST_P() 66 EXPECT_TRUE(spdy_util_.GetHeader(headers, "sec-websocket-key").empty()); in TEST_P() 67 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Sec-WebSocket-Version").empty()); in TEST_P() [all …]
|
/external/apache-http/src/org/apache/http/message/ |
D | HeaderGroup.java | 59 private List headers; field in HeaderGroup 65 this.headers = new ArrayList(16); in HeaderGroup() 72 headers.clear(); in clear() 85 headers.add(header); in addHeader() 97 headers.remove(header); in removeHeader() 111 for (int i = 0; i < this.headers.size(); i++) { in updateHeader() 112 Header current = (Header) this.headers.get(i); in updateHeader() 114 this.headers.set(i, header); in updateHeader() 118 this.headers.add(header); in updateHeader() 128 public void setHeaders(Header[] headers) { in setHeaders() argument [all …]
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
D | servlet.py | 29 def __init__(self, path, host, headers, arguments={}): argument 32 self.headers = RequestHeaders(headers) 36 def ForTest(path, host=None, headers=None, arguments=None): argument 39 headers or {}, 44 self.path, self.host, self.headers) 76 def __init__(self, content=None, headers=None, status=None): argument 80 self.headers = {} 81 if headers is not None: 82 self.headers.update(headers) 86 def Ok(content, headers=None): argument [all …]
|
/external/chromium_org/components/data_reduction_proxy/common/ |
D | data_reduction_proxy_headers_unittest.cc | 20 const char* headers; in TEST_F() member 97 std::string headers(tests[i].headers); in TEST_F() local 98 HeadersToRaw(&headers); in TEST_F() 100 new net::HttpResponseHeaders(headers)); in TEST_F() 114 const char* headers; in TEST_F() member 347 std::string headers(tests[i].headers); in TEST_F() local 348 HeadersToRaw(&headers); in TEST_F() 350 new net::HttpResponseHeaders(headers)); in TEST_F() 366 std::string headers = in TEST_F() local 371 HeadersToRaw(&headers); in TEST_F() [all …]
|
D | data_reduction_proxy_headers.cc | 52 const net::HttpResponseHeaders* headers, in GetDataReductionProxyActionValue() argument 55 DCHECK(headers); in GetDataReductionProxyActionValue() 63 while (headers->EnumerateHeader(&iter, kChromeProxyHeader, &value)) { in GetDataReductionProxyActionValue() 77 bool ParseHeadersAndSetBypassDuration(const net::HttpResponseHeaders* headers, in ParseHeadersAndSetBypassDuration() argument 80 DCHECK(headers); in ParseHeadersAndSetBypassDuration() 88 while (headers->EnumerateHeader(&iter, kChromeProxyHeader, &value)) { in ParseHeadersAndSetBypassDuration() 113 bool ParseHeadersAndSetProxyInfo(const net::HttpResponseHeaders* headers, in ParseHeadersAndSetProxyInfo() argument 129 headers, kChromeProxyActionBlock, &proxy_info->bypass_duration)) { in ParseHeadersAndSetProxyInfo() 137 headers, kChromeProxyActionBypass, &proxy_info->bypass_duration)) { in ParseHeadersAndSetProxyInfo() 148 if (headers->HasHeaderValue(kChromeProxyHeader, in ParseHeadersAndSetProxyInfo() [all …]
|
/external/chromium_org/net/tools/flip_server/ |
D | spdy_interface.cc | 126 const SpdyHeaderBlock& headers, in SpdyHandleNewStream() argument 131 VLOG(2) << ACCEPTOR_CLIENT_IDENT << "SpdySM: # headers: " << headers.size(); in SpdyHandleNewStream() 133 SpdyHeaderBlock::const_iterator method = headers.end(); in SpdyHandleNewStream() 134 SpdyHeaderBlock::const_iterator host = headers.end(); in SpdyHandleNewStream() 135 SpdyHeaderBlock::const_iterator path = headers.end(); in SpdyHandleNewStream() 136 SpdyHeaderBlock::const_iterator scheme = headers.end(); in SpdyHandleNewStream() 137 SpdyHeaderBlock::const_iterator version = headers.end(); in SpdyHandleNewStream() 138 SpdyHeaderBlock::const_iterator url = headers.end(); in SpdyHandleNewStream() 143 url = headers.find("url"); in SpdyHandleNewStream() 144 method = headers.find("method"); in SpdyHandleNewStream() [all …]
|
D | mem_cache_test.cc | 64 ASSERT_EQ("HTTP/1.1", hello->headers()->response_version()); in TEST_F() 65 ASSERT_EQ("200", hello->headers()->response_code()); in TEST_F() 66 ASSERT_EQ("OK", hello->headers()->response_reason_phrase()); in TEST_F() 68 std::distance(hello->headers()->header_lines_begin(), in TEST_F() 69 hello->headers()->header_lines_end())); in TEST_F() 70 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() 74 ASSERT_EQ("value1", hello->headers()->GetHeaderPosition("key1")->second); in TEST_F() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HeadersTest.java | 41 Headers headers = response.headers(); in parseNameValueBlock() local 42 assertEquals(4, headers.size()); in parseNameValueBlock() 44 assertEquals("no-cache, no-store", headers.get("cache-control")); in parseNameValueBlock() 45 assertEquals("Cookie2", headers.get("set-cookie")); in parseNameValueBlock() 46 assertEquals(Protocol.SPDY_3.name.utf8(), headers.get(OkHeaders.SELECTED_PROTOCOL)); in parseNameValueBlock() 47 assertEquals(OkHeaders.SELECTED_PROTOCOL, headers.name(0)); in parseNameValueBlock() 48 assertEquals(Protocol.SPDY_3.name.utf8(), headers.value(0)); in parseNameValueBlock() 49 assertEquals("cache-control", headers.name(1)); in parseNameValueBlock() 50 assertEquals("no-cache, no-store", headers.value(1)); in parseNameValueBlock() 51 assertEquals("set-cookie", headers.name(2)); in parseNameValueBlock() [all …]
|
/external/chromium_org/net/quic/ |
D | quic_data_stream_test.cc | 120 string headers = SpdyUtils::SerializeUncompressedHeaders(headers_); in TEST_P() local 122 stream_->OnStreamHeaders(headers); in TEST_P() 123 EXPECT_EQ(headers, stream_->data()); in TEST_P() 124 stream_->OnStreamHeadersComplete(false, headers.size()); in TEST_P() 126 EXPECT_EQ(headers, stream_->data()); in TEST_P() 133 string headers = SpdyUtils::SerializeUncompressedHeaders(headers_); in TEST_P() local 136 stream_->OnStreamHeaders(headers); in TEST_P() 137 EXPECT_EQ(headers, stream_->data()); in TEST_P() 138 stream_->OnStreamHeadersComplete(false, headers.size()); in TEST_P() 142 EXPECT_EQ(headers + body, stream_->data()); in TEST_P() [all …]
|
/external/libcxx/test/depr/depr.c.headers/ |
D | Android.mk | 17 test_makefile := external/libcxx/test/depr/depr.c.headers/Android.mk 19 test_name := depr/depr.c.headers/stdarg_h 23 test_name := depr/depr.c.headers/string_h 27 test_name := depr/depr.c.headers/ciso646 31 test_name := depr/depr.c.headers/tgmath_h 35 test_name := depr/depr.c.headers/time_h 39 test_name := depr/depr.c.headers/stdlib_h 43 test_name := depr/depr.c.headers/wchar_h 47 test_name := depr/depr.c.headers/ctype_h 51 test_name := depr/depr.c.headers/iso646_h [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/ |
D | TestHttpResponse.java | 29 private Header[] headers = new Header[0]; field in TestHttpResponse 42 public TestHttpResponse(int statusCode, String responseBody, Header... headers) { in TestHttpResponse() argument 43 this(statusCode, responseBody.getBytes(), headers); in TestHttpResponse() 46 public TestHttpResponse(int statusCode, byte[] responseBody, Header... headers) { in TestHttpResponse() argument 49 this.headers = headers; in TestHttpResponse() 65 return headers; in getAllHeaders() 69 for (Header h : headers) { in getFirstHeader() 78 for (int i = headers.length -1; i >= 0; i--) { in getLastHeader() 79 if (headers[i].getName().equalsIgnoreCase(s)) { in getLastHeader() 80 return headers[i]; in getLastHeader() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/examples/peerconnection/server/ |
D | data_socket.cc | 195 const char* headers = request_headers_.data() + i + 2; in ParseHeaders() local 197 if (!ParseContentLengthAndType(headers, len)) in ParseHeaders() 241 bool DataSocket::ParseContentLengthAndType(const char* headers, size_t length) { in ParseContentLengthAndType() argument 245 const char* end = headers + length; in ParseContentLengthAndType() 246 while (headers && headers < end) { in ParseContentLengthAndType() 247 if (!isspace(headers[0])) { in ParseContentLengthAndType() 250 if ((headers + ARRAYSIZE(kContentLength)) < end && in ParseContentLengthAndType() 251 strncmp(headers, kContentLength, in ParseContentLengthAndType() 253 headers += ARRAYSIZE(kContentLength) - 1; in ParseContentLengthAndType() 254 while (headers[0] == ' ') in ParseContentLengthAndType() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | Request.java | 39 private final Headers headers; field in Request 50 this.headers = builder.headers.build(); in Request() 76 public Headers headers() { in headers() method in Request 77 return headers; in headers() 81 return headers.get(name); in header() 84 public List<String> headers(String name) { in headers() method in Request 85 return headers.values(name); in headers() 101 return headers; in getHeaders() 114 return result != null ? result : (parsedHeaders = new ParsedHeaders(headers)); in parsedHeaders() 123 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl() [all …]
|
/external/chromium_org/net/tools/balsa/ |
D | balsa_headers_token_utils.cc | 11 const BalsaHeaders& headers, in TokenizeHeaderLine() argument 17 const char* stream_begin = headers.GetPtr(header_line.buffer_base_idx); in TokenizeHeaderLine() 28 const base::StringPiece& key, BalsaHeaders* headers) { in RemoveLastTokenFromHeaderValue() argument 30 headers->GetHeaderLinesIterator(key, headers->header_lines_.begin()); in RemoveLastTokenFromHeaderValue() 31 if (it == headers->header_lines_.end()) { in RemoveLastTokenFromHeaderValue() 41 it = headers->GetHeaderLinesIterator(key, it + 1); in RemoveLastTokenFromHeaderValue() 43 while (it != headers->header_lines_.end()); in RemoveLastTokenFromHeaderValue() 47 TokenizeHeaderLine(*headers, *header_line, &tokens); in RemoveLastTokenFromHeaderValue() 60 const char* stream_begin = headers->GetPtr(header_line->buffer_base_idx); in RemoveLastTokenFromHeaderValue() 67 const BalsaHeaders& headers, in CheckHeaderForLastToken() argument [all …]
|
/external/chromium_org/chrome/common/extensions/docs/static/js/ |
D | tabs.js | 39 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[j].classList.remove("unselected"); [all …]
|