Home
last modified time | relevance | path

Searched refs:headers (Results 1 – 25 of 3143) sorted by relevance

12345678910>>...126

/external/apache-http/src/org/apache/http/message/
DHeaderGroup.java59 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/volley/src/test/java/com/android/volley/toolbox/
DHttpHeaderParserTest.java49 private Map<String, String> headers; field in HttpHeaderParserTest
53 headers = new HashMap<String, String>(); in setUp()
54 response = new NetworkResponse(0, null, headers, false); in setUp()
77 headers.put("MyCustomHeader", "42"); in parseCacheHeaders_headersSet()
89 headers.put("ETag", "Yow!"); in parseCacheHeaders_etag()
100 headers.put("Date", rfc1123Date(now)); in parseCacheHeaders_normalExpire()
101 headers.put("Last-Modified", rfc1123Date(now - ONE_DAY_MILLIS)); in parseCacheHeaders_normalExpire()
102 headers.put("Expires", rfc1123Date(now + ONE_HOUR_MILLIS)); in parseCacheHeaders_normalExpire()
117 headers.put("Date", rfc1123Date(now)); in parseCacheHeaders_expiresInPast()
118 headers.put("Expires", rfc1123Date(now - ONE_HOUR_MILLIS)); in parseCacheHeaders_expiresInPast()
[all …]
/external/icu/icu4c/source/test/hdrtst/
DMakefile.in48 echo "$(NAME.headers) unicode/$$incfile" ; \
51 $(COMPILE.headers) $(cppflags) $(FLAGS.headers) $$stub || FAIL=1 ; \
58 NAME.headers=$@ \
59 COMPILE.headers="$(COMPILE.c)" \
60 SUFFIX.headers=c \
61 FLAGS.headers=
65 NAME.headers=$@ \
66 COMPILE.headers="$(COMPILE.cc)" \
67 SUFFIX.headers=cpp \
68 FLAGS.headers=
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHeadersTest.java45 Headers headers = response.headers(); in parseNameValueBlock() local
46 assertEquals(3, headers.size()); in parseNameValueBlock()
50 assertEquals("no-cache, no-store", headers.get("cache-control")); in parseNameValueBlock()
51 assertEquals("Cookie2", headers.get("set-cookie")); in parseNameValueBlock()
52 assertEquals("cache-control", headers.name(0)); in parseNameValueBlock()
53 assertEquals("no-cache, no-store", headers.value(0)); in parseNameValueBlock()
54 assertEquals("set-cookie", headers.name(1)); in parseNameValueBlock()
55 assertEquals("Cookie1", headers.value(1)); in parseNameValueBlock()
56 assertEquals("set-cookie", headers.name(2)); in parseNameValueBlock()
57 assertEquals("Cookie2", headers.value(2)); in parseNameValueBlock()
[all …]
/external/python/oauth2client/oauth2client/
Dtransport.py70 def _initialize_headers(headers): argument
80 return {} if headers is None else dict(headers)
83 def _apply_user_agent(headers, user_agent): argument
96 if 'user-agent' in headers:
97 headers['user-agent'] = (user_agent + ' ' + headers['user-agent'])
99 headers['user-agent'] = user_agent
101 return headers
104 def clean_headers(headers): argument
119 for k, v in six.iteritems(headers):
147 def new_request(uri, method='GET', body=None, headers=None, argument
[all …]
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DGrpcHttp2InboundHeadersTest.java43 Http2Headers headers = new GrpcHttp2RequestHeaders(1); in basicCorrectness() local
44 headers.add(of(":method"), of("POST")); in basicCorrectness()
45 headers.add(of("content-type"), of("application/grpc+proto")); in basicCorrectness()
46 headers.add(of(":path"), of("/google.pubsub.v2.PublisherService/CreateTopic")); in basicCorrectness()
47 headers.add(of(":scheme"), of("https")); in basicCorrectness()
48 headers.add(of("te"), of("trailers")); in basicCorrectness()
49 headers.add(of(":authority"), of("pubsub.googleapis.com")); in basicCorrectness()
50 headers.add(of("foo"), of("bar")); in basicCorrectness()
52 assertEquals(7, headers.size()); in basicCorrectness()
54 assertEquals(2, ((GrpcHttp2InboundHeaders)headers).numHeaders()); in basicCorrectness()
[all …]
/external/python/oauth2client/tests/
Dtest_transport.py64 headers = {'a': 1, 'b': 2}
65 result = transport._initialize_headers(headers)
66 self.assertEqual(result, headers)
67 self.assertIsNot(result, headers)
73 headers = object()
74 result = transport._apply_user_agent(headers, None)
75 self.assertIs(result, headers)
78 headers = {}
80 result = transport._apply_user_agent(headers, user_agent)
81 self.assertIs(result, headers)
[all …]
Dhttp_mock.py25 def __init__(self, headers=None): argument
31 if headers is None:
32 headers = {'status': '200'}
34 self.response_headers = headers
35 self.headers = None
39 self.headers = None
44 headers=None, argument
50 self.headers = headers
89 headers=None, argument
93 self.requests.append({'uri': uri, 'body': body, 'headers': headers})
[all …]
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/
Dheaders.test1 ## This is a test for --headers and its alias -e.
2 ## Specifying --headers is equivalent to setting --file-headers,
3 ## --program-headers and --section-headers at the same time.
5 ## that --headers triggers them.
10 # RUN: llvm-readelf --headers %t > %t.headers.gnu.txt
11 # RUN: FileCheck %s --input-file=%t.headers.gnu.txt --check-prefix=GNU
19 # RUN: cmp %t.headers.gnu.txt %t.e.gnu.txt
21 # RUN: llvm-readelf --file-headers --program-headers --section-headers %t > %t.all.gnu.txt
22 # RUN: cmp %t.headers.gnu.txt %t.all.gnu.txt
25 # RUN: llvm-readobj --headers %t > %t.headers.llvm.txt
[all …]
Dfile-header-machine-types.test4 # RUN: llvm-readelf --file-headers %t.none.o | FileCheck %s -DMACHINE="None"
7 # RUN: llvm-readelf --file-headers %t.m32.o | FileCheck %s -DMACHINE="WE32100"
10 # RUN: llvm-readelf --file-headers %t.sparc.o | FileCheck %s -DMACHINE="Sparc"
13 # RUN: llvm-readelf --file-headers %t.386.o | FileCheck %s -DMACHINE="Intel 80386"
16 # RUN: llvm-readelf --file-headers %t.68k.o | FileCheck %s -DMACHINE="MC68000"
19 # RUN: llvm-readelf --file-headers %t.88k.o | FileCheck %s -DMACHINE="MC88000"
22 # RUN: llvm-readelf --file-headers %t.iamcu.o | FileCheck %s -DMACHINE="EM_IAMCU"
25 # RUN: llvm-readelf --file-headers %t.860.o | FileCheck %s -DMACHINE="Intel 80860"
28 # RUN: llvm-readelf --file-headers %t.mips.o | FileCheck %s -DMACHINE="MIPS R3000"
31 # RUN: llvm-readelf --file-headers %t.s370.o | FileCheck %s -DMACHINE="IBM System/370"
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DHttp2ClientStreamTransportStateTest.java77 Metadata headers = new Metadata(); in transportHeadersReceived_notifiesListener() local
78 headers.put(testStatusMashaller, "200"); in transportHeadersReceived_notifiesListener()
79 headers.put(Metadata.Key.of("content-type", Metadata.ASCII_STRING_MARSHALLER), in transportHeadersReceived_notifiesListener()
81 state.transportHeadersReceived(headers); in transportHeadersReceived_notifiesListener()
84 verify(mockListener).headersRead(headers); in transportHeadersReceived_notifiesListener()
91 Metadata headers = new Metadata(); in transportHeadersReceived_doesntRequire200() local
92 headers.put(testStatusMashaller, "500"); in transportHeadersReceived_doesntRequire200()
93 headers.put(Metadata.Key.of("content-type", Metadata.ASCII_STRING_MARSHALLER), in transportHeadersReceived_doesntRequire200()
95 state.transportHeadersReceived(headers); in transportHeadersReceived_doesntRequire200()
98 verify(mockListener).headersRead(headers); in transportHeadersReceived_doesntRequire200()
[all …]
/external/volley/src/main/java/com/android/volley/
DNetworkResponse.java46 @Nullable Map<String, String> headers, in NetworkResponse() argument
49 this(statusCode, data, headers, toAllHeaderList(headers), notModified, networkTimeMs); in NetworkResponse()
85 @Nullable Map<String, String> headers, in NetworkResponse() argument
87 this(statusCode, data, headers, notModified, /* networkTimeMs= */ 0); in NetworkResponse()
114 public NetworkResponse(byte[] data, @Nullable Map<String, String> headers) { in NetworkResponse() argument
118 headers, in NetworkResponse()
126 @Nullable Map<String, String> headers, in NetworkResponse() argument
132 this.headers = headers; in NetworkResponse()
157 @Nullable public final Map<String, String> headers; field in NetworkResponse
176 Map<String, String> headers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); in toHeaderMap() local
[all …]
/external/python/google-api-python-client/tests/
Dtest_json_model.py45 headers = {}
50 headers, unused_params, query, body = model.request(
51 headers, path_params, query_params, body
54 self.assertEqual(headers["accept"], "application/json")
55 self.assertTrue("content-type" not in headers)
62 headers = {}
67 headers, unused_params, query, body = model.request(
68 headers, path_params, query_params, body
71 self.assertEqual(headers["accept"], "application/json")
72 self.assertEqual(headers["content-type"], "application/json")
[all …]
/external/rust/crates/csv/src/
Dreader.rs727 headers: Option<Headers>, field
824 headers: None, in new()
1329 pub fn headers(&mut self) -> Result<&StringRecord> { in headers() method
1330 if self.state.headers.is_none() { in headers()
1335 let headers = self.state.headers.as_ref().unwrap(); in headers() localVariable
1336 match headers.string_record { in headers()
1339 pos: headers.byte_record.position().map(Clone::clone), in headers()
1399 if self.state.headers.is_none() { in byte_headers()
1404 Ok(&self.state.headers.as_ref().unwrap().byte_record) in byte_headers()
1434 pub fn set_headers(&mut self, headers: StringRecord) { in set_headers()
[all …]
/external/webrtc/examples/peerconnection/server/
Ddata_socket.cc181 const char* headers = request_headers_.data() + i + 2; in ParseHeaders() local
183 if (!ParseContentLengthAndType(headers, len)) in ParseHeaders()
227 bool DataSocket::ParseContentLengthAndType(const char* headers, size_t length) { in ParseContentLengthAndType() argument
231 const char* end = headers + length; in ParseContentLengthAndType()
232 while (headers && headers < end) { in ParseContentLengthAndType()
233 if (!isspace(headers[0])) { in ParseContentLengthAndType()
236 if ((headers + ARRAYSIZE(kContentLength)) < end && in ParseContentLengthAndType()
237 strncmp(headers, kContentLength, ARRAYSIZE(kContentLength) - 1) == in ParseContentLengthAndType()
239 headers += ARRAYSIZE(kContentLength) - 1; in ParseContentLengthAndType()
240 while (headers[0] == ' ') in ParseContentLengthAndType()
[all …]
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DTestHttpResponse.java29 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(UTF_8), 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/llvm-project/llvm/test/CodeGen/AMDGPU/
Delf-header-flags-mach.ll1 ; RUN: llc -filetype=obj -march=r600 -mcpu=r600 < %s | llvm-readobj -file-headers - | FileCheck --c…
2 ; RUN: llc -filetype=obj -march=r600 -mcpu=r630 < %s | llvm-readobj -file-headers - | FileCheck --c…
3 ; RUN: llc -filetype=obj -march=r600 -mcpu=rs880 < %s | llvm-readobj -file-headers - | FileCheck --…
4 ; RUN: llc -filetype=obj -march=r600 -mcpu=rv670 < %s | llvm-readobj -file-headers - | FileCheck --…
5 ; RUN: llc -filetype=obj -march=r600 -mcpu=rv710 < %s | llvm-readobj -file-headers - | FileCheck --…
6 ; RUN: llc -filetype=obj -march=r600 -mcpu=rv730 < %s | llvm-readobj -file-headers - | FileCheck --…
7 ; RUN: llc -filetype=obj -march=r600 -mcpu=rv770 < %s | llvm-readobj -file-headers - | FileCheck --…
8 ; RUN: llc -filetype=obj -march=r600 -mcpu=cedar < %s | llvm-readobj -file-headers - | FileCheck --…
9 ; RUN: llc -filetype=obj -march=r600 -mcpu=cypress < %s | llvm-readobj -file-headers - | FileCheck …
10 ; RUN: llc -filetype=obj -march=r600 -mcpu=juniper < %s | llvm-readobj -file-headers - | FileCheck …
[all …]
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DSendResponseHeadersCommand.java29 private final Http2Headers headers; field in SendResponseHeadersCommand
32 private SendResponseHeadersCommand(StreamIdHolder stream, Http2Headers headers, Status status) { in SendResponseHeadersCommand() argument
34 this.headers = Preconditions.checkNotNull(headers, "headers"); in SendResponseHeadersCommand()
38 static SendResponseHeadersCommand createHeaders(StreamIdHolder stream, Http2Headers headers) { in createHeaders() argument
39 return new SendResponseHeadersCommand(stream, headers, null); in createHeaders()
43 StreamIdHolder stream, Http2Headers headers, Status status) { in createTrailers() argument
45 stream, headers, Preconditions.checkNotNull(status, "status")); in createTrailers()
52 Http2Headers headers() { in headers() method in SendResponseHeadersCommand
53 return headers; in headers()
71 && thatCmd.headers.equals(headers) in equals()
[all …]
/external/python/httplib2/tests/
Dtest_cache.py17 uri, "GET", headers={"cache-control": "only-if-cached"}
28 uri, "GET", headers={"cache-control": "only-if-cached"}
42 uri, "GET", headers={"cache-control": "only-if-cached"}
73 headers={"vary": "Accept", "cache-control": "max-age=300"}, add_date=True
76 response, content = http.request(uri, "GET", headers={"accept": "text/plain"})
82 response, content = http.request(uri, "GET", headers={"Accept": "text/plain"})
87 response, content = http.request(uri, "GET", headers={"Accept": "text/html"})
100 headers={"vary": "Accept, Accept-Language", "cache-control": "max-age=300"},
107 headers={
119 headers={
[all …]
/external/llvm-project/compiler-rt/include/
DCMakeLists.txt52 # Copy compiler-rt headers to the build tree.
64 add_custom_target(compiler-rt-headers ALL DEPENDS ${out_files})
65 add_dependencies(compiler-rt compiler-rt-headers)
66 set_target_properties(compiler-rt-headers PROPERTIES FOLDER "Compiler-RT Misc")
68 # Install sanitizer headers.
70 COMPONENT compiler-rt-headers
73 # Install fuzzer headers.
75 COMPONENT compiler-rt-headers
78 # Install xray headers.
80 COMPONENT compiler-rt-headers
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DRequest.java31 private final Headers headers; field in Request
42 this.headers = builder.headers.build(); in Request()
73 public Headers headers() { in headers() method in Request
74 return headers; in headers()
78 return headers.get(name); in header()
81 public List<String> headers(String name) { in headers() method in Request
82 return headers.values(name); in headers()
103 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl()
123 private Headers.Builder headers; field in Request.Builder
129 this.headers = new Headers.Builder(); in Builder()
[all …]
/external/libbrillo/brillo/http/
Dhttp_utils.cc25 const HeaderList& headers, in GetAndBlock() argument
29 request_type::kGet, url, headers, transport, error); in GetAndBlock()
33 const HeaderList& headers, in Get() argument
39 headers, in Get()
67 const HeaderList& headers, in PostTextAndBlock() argument
71 url, data.data(), data.size(), mime_type, headers, transport, error); in PostTextAndBlock()
77 const HeaderList& headers, in PostText() argument
85 headers, in PostText()
97 const HeaderList& headers, in SendRequestAndBlock() argument
101 request.AddHeaders(headers); in SendRequestAndBlock()
[all …]
/external/volley/src/main/java/com/android/volley/toolbox/
DHttpHeaderParser.java64 Map<String, String> headers = response.headers; in parseCacheHeaders() local
65 if (headers == null) { in parseCacheHeaders()
82 headerValue = headers.get("Date"); in parseCacheHeaders()
87 headerValue = headers.get("Cache-Control"); in parseCacheHeaders()
111 headerValue = headers.get("Expires"); in parseCacheHeaders()
116 headerValue = headers.get("Last-Modified"); in parseCacheHeaders()
121 serverEtag = headers.get("ETag"); in parseCacheHeaders()
141 entry.responseHeaders = headers; in parseCacheHeaders()
187 @Nullable Map<String, String> headers, String defaultCharset) { in parseCharset() argument
188 if (headers == null) { in parseCharset()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DRequest.java36 private final Headers headers; field in Request
47 this.headers = builder.headers.build(); in Request()
78 public Headers headers() { in headers() method in Request
79 return headers; in headers()
83 return headers.get(name); in header()
86 public List<String> headers(String name) { in headers() method in Request
87 return headers.values(name); in headers()
108 return result != null ? result : (cacheControl = CacheControl.parse(headers)); in cacheControl()
131 private Headers.Builder headers; field in Request.Builder
137 this.headers = new Headers.Builder(); in Builder()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/
DServerInterceptorsTest.java70 private final Metadata headers = new Metadata(); field in ServerInterceptorsTest
128 getSoleMethod(intercepted).getServerCallHandler().startCall(call, headers)); in multipleInvocationsOfHandler()
129 verify(interceptor).interceptCall(same(call), same(headers), anyCallHandler()); in multipleInvocationsOfHandler()
130 verify(handler).startCall(call, headers); in multipleInvocationsOfHandler()
134 getSoleMethod(intercepted).getServerCallHandler().startCall(call, headers)); in multipleInvocationsOfHandler()
136 .interceptCall(same(call), same(headers), anyCallHandler()); in multipleInvocationsOfHandler()
137 verify(handler, times(2)).startCall(call, headers); in multipleInvocationsOfHandler()
153 getMethod(intercepted, "basic/flow").getServerCallHandler().startCall(call, headers); in correctHandlerCalled()
154 verify(handler).startCall(call, headers); in correctHandlerCalled()
158 getMethod(intercepted, "basic/flow2").getServerCallHandler().startCall(call, headers); in correctHandlerCalled()
[all …]

12345678910>>...126