HomeSort by relevance Sort by last modified time
    Searched refs:headers (Results 1 - 25 of 590) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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...]
partial_data.h 37 // Performs initialization of the object by examining the request |headers|
40 bool Init(const HttpRequestHeaders& headers);
42 // Sets the headers that we should use to make byte range requests. This is a
43 // subset of the request extra headers, with byte-range related headers
45 void SetHeaders(const HttpRequestHeaders& headers);
47 // Restores the byte-range headers, by appending the byte range to the headers
49 void RestoreHeaders(HttpRequestHeaders* headers) const;
60 // Builds the required |headers| to perform the proper cache validation fo
    [all...]
http_response_headers_unittest.cc 35 // Transform "normal"-looking headers (\n-separated) to the appropriate
37 void HeadersToRaw(std::string* headers) {
38 replace(headers->begin(), headers->end(), '\n', '\0');
39 if (!headers->empty())
40 *headers += '\0';
48 std::string headers; local
51 parsed->GetNormalizedHeaders(&headers);
54 replace(headers.begin(), headers.end(), ' ', '_')
274 std::string headers = local
445 std::string headers = tests[i].raw_headers; local
466 std::string headers = local
488 std::string headers = local
508 std::string headers = local
674 const char* headers; member in struct:__anon3626
891 const char* headers; member in struct:__anon3628
938 const char* headers; member in struct:__anon3629
1014 const char* headers; member in struct:__anon3630
1098 const char* headers; member in struct:__anon3631
1358 const char* headers; member in struct:__anon3632
1431 const char* headers; member in struct:__anon3633
    [all...]
  /libcore/luni/src/test/java/libcore/net/http/
ParsedHeadersTest.java 33 RawHeaders headers = new RawHeaders(); local
34 headers.add("CACHE-CONTROL", "no-store");
35 headers.add("DATE", "Thu, 01 Jan 1970 00:00:01 UTC");
36 headers.add("EXPIRES", "Thu, 01 Jan 1970 00:00:02 UTC");
37 headers.add("LAST-MODIFIED", "Thu, 01 Jan 1970 00:00:03 UTC");
38 headers.add("ETAG", "v1");
39 headers.add("PRAGMA", "no-cache");
40 ResponseHeaders parsedHeaders = new ResponseHeaders(uri, headers);
50 RawHeaders headers = new RawHeaders(); local
51 headers.add("Cache-Control", "no-store, max-age=60, public")
59 RawHeaders headers = new RawHeaders(); local
66 RawHeaders headers = new RawHeaders(); local
73 RawHeaders headers = new RawHeaders(); local
81 RawHeaders headers = new RawHeaders(); local
88 RawHeaders headers = new RawHeaders(); local
95 RawHeaders headers = new RawHeaders(); local
101 RawHeaders headers = new RawHeaders(); local
108 RawHeaders headers = new RawHeaders(); local
115 RawHeaders headers = new RawHeaders(); local
122 RawHeaders headers = new RawHeaders(); local
137 RawHeaders headers = new RawHeaders(); local
154 RawHeaders headers = new RawHeaders(); local
161 RawHeaders headers = new RawHeaders(); local
168 RawHeaders headers = new RawHeaders(); local
175 RawHeaders headers = new RawHeaders(); local
182 RawHeaders headers = new RawHeaders(); local
    [all...]
  /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/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...]
spdy_http_utils.h 19 // |headers| input parameter with the SpdyHeaderBlock.
23 bool SpdyHeadersToHttpResponse(const spdy::SpdyHeaderBlock& headers,
30 spdy::SpdyHeaderBlock* 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,
  /external/chromium/net/url_request/
url_request_throttler_header_adapter.cc 12 HttpResponseHeaders* headers)
13 : response_header_(headers) {
  /frameworks/base/core/java/android/webkit/
UrlInterceptHandler.java 37 * @param headers The headers associated with the request. May be null.
44 public CacheResult service(String url, Map<String, String> headers);
52 * @param headers The headers associated with the request. May be null.
59 public PluginData getPluginData(String url, Map<String, String> headers);
  /external/bouncycastle/src/main/java/org/bouncycastle/util/io/pem/
PemObject.java 13 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)
37 this.headers = Collections.unmodifiableList(headers);
48 return headers;
  /external/mockwebserver/src/main/java/com/google/mockwebserver/
RecordedRequest.java 26 private final List<String> headers; field in class:RecordedRequest
32 RecordedRequest(String requestLine, List<String> headers, List<Integer> chunkSizes,
35 this.headers = headers;
47 return headers;
MockResponse.java 35 private List<String> headers = new ArrayList<String>(); field in class:MockResponse
40 headers.add(EMPTY_BODY_HEADER);
46 result.headers = new ArrayList<String>(result.headers);
71 * Returns the HTTP headers, such as "Content-Length: 0".
74 return headers;
78 headers.clear();
83 headers.add(header);
96 headers.remove(EMPTY_BODY_HEADER);
98 this.headers.add("Content-Length: " + body.length)
    [all...]
  /frameworks/base/core/tests/utillib/src/coretestutils/http/
RecordedRequest.java 26 private final List<String> headers; field in class:RecordedRequest
32 RecordedRequest(String requestLine, List<String> headers, List<Integer> chunkSizes,
35 this.headers = headers;
47 return headers;
  /libcore/support/src/test/java/tests/http/
RecordedRequest.java 26 private final List<String> headers; field in class:RecordedRequest
32 RecordedRequest(String requestLine, List<String> headers, List<Integer> chunkSizes,
35 this.headers = headers;
47 return headers;
MockResponse.java 36 private List<String> headers = new ArrayList<String>(); field in class:MockResponse
41 headers.add(EMPTY_BODY_HEADER);
47 result.headers = new ArrayList<String>(result.headers);
72 * Returns the HTTP headers, such as "Content-Length: 0".
75 return headers;
79 headers.clear();
84 headers.add(header);
97 headers.remove(EMPTY_BODY_HEADER);
99 this.headers.add("Content-Length: " + body.length)
    [all...]
  /packages/providers/DownloadProvider/tests/src/tests/http/
RecordedRequest.java 26 private final List<String> headers; field in class:RecordedRequest
32 RecordedRequest(String requestLine, List<String> headers, List<Integer> chunkSizes,
35 this.headers = headers;
47 return headers;
  /external/chromium/chrome/browser/debugger/
devtools_remote_message.cc 22 DevToolsRemoteMessage::DevToolsRemoteMessage(const HeaderMap& headers,
24 : header_map_(headers),
59 DevToolsRemoteMessage::HeaderMap headers; local
60 headers[DevToolsRemoteMessageHeaders::kContentLength] =
62 headers[DevToolsRemoteMessageHeaders::kTool] = tool;
63 headers[DevToolsRemoteMessageHeaders::kDestination] = destination;
64 return new DevToolsRemoteMessage(headers, content);
devtools_remote_message_unittest.cc 24 DevToolsRemoteMessage::HeaderMap headers; local
26 headers[DevToolsRemoteMessageHeaders::kTool] = "DevToolsService";
27 headers[DevToolsRemoteMessageHeaders::kContentLength] =
30 DevToolsRemoteMessage message(headers, content);
39 message.headers().size());
51 message->headers().size());
  /libcore/luni/src/main/java/libcore/net/http/
RequestHeaders.java 25 * Parsed HTTP request headers.
29 private final RawHeaders headers; field in class:RequestHeaders
64 public RequestHeaders(URI uri, RawHeaders headers) {
66 this.headers = headers;
84 for (int i = 0; i < headers.length(); i++) {
85 String fieldName = headers.getFieldName(i);
86 String value = headers.getValue(i);
135 return headers;
204 headers.removeAll("Transfer-Encoding")
    [all...]
  /external/chromium/net/tools/fetch/
http_server_request_info.h 15 // This is geared toward servers in that it keeps a map of the headers and
23 // A map of the names -> values for HTTP headers.
24 std::map<std::string, std::string> headers; member in class:HttpServerRequestInfo

Completed in 2096 milliseconds

1 2 3 4 5 6 7 8 91011>>