Searched refs:headers (Results 1 - 25 of 974) sorted by relevance

1234567891011>>

/external/chromium_org/net/http/
H A Dhttp_request_headers_unittest.cc16 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_org/components/data_reduction_proxy/common/
H A Ddata_reduction_proxy_headers_test_utils.cc11 void HeadersToRaw(std::string* headers) { argument
12 std::replace(headers->begin(), headers->end(), '\n', '\0');
13 if (!headers->empty())
14 *headers += '\0';
H A Ddata_reduction_proxy_headers_test_utils.h12 // Transform "normal"-looking headers (\n-separated) to the appropriate
14 void HeadersToRaw(std::string* headers);
H A Ddata_reduction_proxy_headers.h88 bool ParseHeadersAndSetProxyInfo(const net::HttpResponseHeaders* headers,
96 bool HasDataReductionProxyViaHeader(const net::HttpResponseHeaders* headers,
103 const net::HttpResponseHeaders* headers,
110 const net::HttpResponseHeaders* headers,
116 bool ParseHeadersAndSetBypassDuration(const net::HttpResponseHeaders* headers,
122 const net::HttpResponseHeaders* headers,
127 const net::HttpResponseHeaders* headers,
130 // Gets the fingerprint of a list of headers.
132 const net::HttpResponseHeaders* headers,
137 const net::HttpResponseHeaders* headers,
[all...]
/external/chromium_org/content/test/data/service_worker/
H A Dfetch_event.js6 var headers = new Headers;
7 headers.set('Content-Language', 'fi');
8 headers.set('Content-Type', 'text/html; charset=UTF-8');
13 headers: headers
H A Dfetch_event_reload.js6 var headers = new Headers;
7 headers.set('Content-Type', 'text/html; charset=UTF-8');
/external/chromium_org/net/spdy/
H A Dspdy_header_block_unittest.cc17 SpdyHeaderBlock headers; local
18 headers["A"] = "a";
19 headers["B"] = "b";
22 SpdyHeaderBlockNetLogCallback(&headers, NetLog::LOG_ALL_BUT_BYTES));
26 EXPECT_EQ(headers, headers2);
H A Dhpack_round_trip_test.cc60 map<string, string> headers; local
61 headers[":status"] = "302";
62 headers["cache-control"] = "private";
63 headers["date"] = "Mon, 21 Oct 2013 20:13:21 GMT";
64 headers["location"] = "https://www.example.com";
65 EXPECT_TRUE(RoundTrip(headers));
68 map<string, string> headers; local
69 headers[":status"] = "200";
70 headers["cache-control"] = "private";
71 headers["dat
76 map<string, string> headers; local
91 map<string, string> headers; local
100 map<string, string> headers; local
110 map<string, string> headers; local
147 map<string, string> headers; local
[all...]
H A Dspdy_websocket_test_util.cc17 std::string SpdyWebSocketTestUtil::GetHeader(const SpdyHeaderBlock& headers, argument
19 SpdyHeaderBlock::const_iterator it = headers.find(GetHeaderKey(key));
20 return (it == headers.end()) ? "" : it->second;
26 SpdyHeaderBlock* headers) const {
27 (*headers)[GetHeaderKey(key)] = value;
35 scoped_ptr<SpdyHeaderBlock> headers(new SpdyHeaderBlock());
36 SetHeader("path", path, headers.get());
37 SetHeader("host", host, headers.get());
38 SetHeader("version", "WebSocket/13", headers.get());
39 SetHeader("scheme", "ws", headers
52 ConstructSpdyWebSocketHandshakeRequestFrame( scoped_ptr<SpdyHeaderBlock> headers, SpdyStreamId stream_id, RequestPriority request_priority) argument
60 ConstructSpdyWebSocketHandshakeResponseFrame( scoped_ptr<SpdyHeaderBlock> headers, SpdyStreamId stream_id, RequestPriority request_priority) argument
[all...]
H A Dspdy_http_utils.cc27 SpdyHeaderBlock* headers) {
28 if (headers->find(name) == headers->end()) {
29 (*headers)[name] = value;
31 (*headers)[name] += '\0' + value;
37 bool SpdyHeadersToHttpResponse(const SpdyHeaderBlock& headers, argument
48 it = headers.find(status_key);
49 if (it == headers.end())
56 it = headers.find(version_key);
57 if (it == headers
25 AddSpdyHeader(const std::string& name, const std::string& value, SpdyHeaderBlock* headers) argument
100 CreateSpdyHeadersFromHttpRequest(const HttpRequestInfo& info, const HttpRequestHeaders& request_headers, SpdyMajorVersion protocol_version, bool direct, SpdyHeaderBlock* headers) argument
139 CreateSpdyHeadersFromHttpResponse( const HttpResponseHeaders& response_headers, SpdyMajorVersion protocol_version, SpdyHeaderBlock* headers) argument
196 GetUrlFromHeaderBlock(const SpdyHeaderBlock& headers, SpdyMajorVersion protocol_version, bool pushed) argument
[all...]
/external/chromium_org/net/websockets/
H A Dwebsocket_handshake_handler_spdy_test.cc54 SpdyHeaderBlock headers; local
56 &headers,
60 EXPECT_EQ(url.path(), spdy_util_.GetHeader(headers, "path"));
61 EXPECT_TRUE(spdy_util_.GetHeader(headers, "upgrade").empty());
62 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Upgrade").empty());
63 EXPECT_TRUE(spdy_util_.GetHeader(headers, "connection").empty());
64 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Connection").empty());
65 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Sec-WebSocket-Key").empty());
66 EXPECT_TRUE(spdy_util_.GetHeader(headers, "sec-websocket-key").empty());
67 EXPECT_TRUE(spdy_util_.GetHeader(headers, "Se
126 SpdyHeaderBlock headers; local
[all...]
H A Dwebsocket_handshake_response_info.cc20 scoped_refptr<HttpResponseHeaders> headers,
25 headers(headers),
16 WebSocketHandshakeResponseInfo( const GURL& url, int status_code, const std::string& status_text, scoped_refptr<HttpResponseHeaders> headers, base::Time response_time) argument
H A Dwebsocket_net_log_params.cc13 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);
12 NetLogWebSocketHandshakeCallback( const std::string* headers, NetLog::LogLevel ) argument
/external/chromium_org/tools/telemetry/third_party/davclient/
H A Ddavclient.py63 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['Authorizatio
[all...]
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
H A DInternalRewrite.java13 private final Map<String, String> headers; field in class:InternalRewrite
15 public InternalRewrite(Map<String, String> headers, String uri) { argument
17 this.headers = headers;
26 return headers;
/external/apache-http/src/org/apache/http/message/
H A DHeaderGroup.java43 * 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.
58 /** The list of headers for this group, in the order in which they were added */
59 private List headers; field in class:HeaderGroup
65 this.headers = new ArrayList(16);
69 * Removes any contained headers.
72 headers.clear();
85 headers.add(header);
97 headers
128 setHeaders(Header[] headers) argument
[all...]
/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dservlet.py7 '''A custom dictionary impementation for headers which ignores the case
29 def __init__(self, path, host, headers, arguments={}):
32 self.headers = RequestHeaders(headers)
36 def ForTest(path, host=None, headers=None, arguments=None):
39 headers or {},
43 return 'Request(path=%s, host=%s, headers=%s)' % (
44 self.path, self.host, self.headers)
76 def __init__(self, content=None, headers=None, status=None):
80 self.headers
[all...]
H A Dlocal_renderer.py17 def Render(path, headers=None):
19 return RenderServlet(Request.ForTest(path, headers=headers),
/external/chromium_org/net/quic/
H A Dspdy_utils.cc17 string SpdyUtils::SerializeUncompressedHeaders(const SpdyHeaderBlock& headers) { argument
19 &headers);
21 SpdyFramer::WriteHeaderBlock(&builder, kDefaultSpdyMajorVersion, &headers);
/external/chromium_org/third_party/google_appengine_cloudstorage/cloudstorage/
H A Dtest_utils.py20 def __init__(self, status, headers, body):
22 self.headers = headers
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
H A DPushPromise.java24 private final List<String> headers; field in class:PushPromise
27 public PushPromise(String method, String path, List<String> headers, MockResponse response) { argument
30 this.headers = headers;
43 return headers;
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
H A DHeadersTest.java41 Headers headers = response.headers();
42 assertEquals(4, headers.size());
44 assertEquals("no-cache, no-store", headers.get("cache-control"));
45 assertEquals("Cookie2", headers.get("set-cookie"));
46 assertEquals(Protocol.SPDY_3.name.utf8(), headers.get(OkHeaders.SELECTED_PROTOCOL));
47 assertEquals(OkHeaders.SELECTED_PROTOCOL, headers.name(0));
48 assertEquals(Protocol.SPDY_3.name.utf8(), headers.value(0));
49 assertEquals("cache-control", headers.name(1));
50 assertEquals("no-cache, no-store", headers
[all...]
/external/chromium_org/net/tools/flip_server/
H A Dmem_cache_test.cc64 ASSERT_EQ("HTTP/1.1", hello->headers()->response_version());
65 ASSERT_EQ("200", hello->headers()->response_code());
66 ASSERT_EQ("OK", hello->headers()->response_reason_phrase());
68 std::distance(hello->headers()->header_lines_begin(),
69 hello->headers()->header_lines_end()));
70 ASSERT_TRUE(hello->headers()->HasHeader("key1"));
71 ASSERT_TRUE(hello->headers()->HasHeader("key2"));
72 ASSERT_TRUE(hello->headers()->HasHeader("transfer-encoding"));
73 ASSERT_TRUE(hello->headers()->HasHeader("connection"));
74 ASSERT_EQ("value1", hello->headers()
[all...]
/external/chromium_org/net/tools/balsa/
H A Dbalsa_headers_token_utils.cc11 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
10 TokenizeHeaderLine( const BalsaHeaders& headers, const BalsaHeaders::HeaderLineDescription& header_line, BalsaHeaders::HeaderTokenList* tokens) argument
27 RemoveLastTokenFromHeaderValue( const base::StringPiece& key, BalsaHeaders* headers) argument
66 CheckHeaderForLastToken( const BalsaHeaders& headers, const base::StringPiece& key, const base::StringPiece& token) argument
92 TokenizeHeaderValue( const BalsaHeaders& headers, const base::StringPiece& key, BalsaHeaders::HeaderTokenList* tokens) argument
[all...]
/external/chromium_org/content/common/service_worker/
H A Dservice_worker_types.cc15 const ServiceWorkerHeaderMap& headers,
20 headers(headers),
33 const ServiceWorkerHeaderMap& headers,
38 headers(headers),
12 ServiceWorkerFetchRequest( const GURL& url, const std::string& method, const ServiceWorkerHeaderMap& headers, const GURL& referrer, bool is_reload) argument
29 ServiceWorkerResponse( const GURL& url, int status_code, const std::string& status_text, const ServiceWorkerHeaderMap& headers, const std::string& blob_uuid) argument

Completed in 568 milliseconds

1234567891011>>