Home
last modified time | relevance | path

Searched refs:getHeaders (Results 1 – 25 of 82) sorted by relevance

1234

/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java80 Header[] headers1 = response1.getHeaders("Foo"); in headers()
86 Header[] headers2 = response2.getHeaders("Foo"); in headers()
158 Header[] headers1 = response1.getHeaders("Content-Type"); in contentType()
166 Header[] headers2 = response2.getHeaders("Content-Type"); in contentType()
174 Header[] headers3 = response3.getHeaders("Content-Type"); in contentType()
198 Header[] encodingHeaders = response.getHeaders("Content-Encoding"); in contentEncoding()
219 Header[] encodingHeaders = response.getHeaders("Content-Encoding"); in jsonGzipResponse()
225 Header[] typeHeaders = response.getHeaders("Content-Type"); in jsonGzipResponse()
245 Header[] encodingHeaders = response.getHeaders("Content-Encoding"); in jsonTransparentGzipResponse()
250 Header[] lengthHeaders = response.getHeaders("Content-Length"); in jsonTransparentGzipResponse()
[all …]
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java63 assertEquals(Arrays.asList("s=square", "a=android"), request.getHeaders("cookie")); in testRecordedRequestAccessors()
65 assertEquals(Arrays.asList("left", "right", "both"), request.getHeaders("x-whitespace")); in testRecordedRequestAccessors()
71 assertEquals(Arrays.asList("Content-Length: 0"), response.getHeaders()); in testDefaultMockResponse()
77 assertEquals(Arrays.asList("Content-Length: 3"), response.getHeaders()); in testSetBodyAdjustsHeaders()
92 response.getHeaders()); in testMockResponseAddHeader()
103 response.getHeaders()); in testMockResponseSetHeader()
120 assertTrue(request.getHeaders().contains("Accept-Language: en-US")); in testRegularResponse()
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/
DTestHttpResponseTest.java93 Header[] headers = resp.getHeaders("Location"); in shouldSupportGetHeadersWithArg()
105 assertThat(response.getHeaders("foo")[0].getValue()).isEqualTo("bar"); in canAddNewBasicHeader()
113 assertThat(response.getHeaders("foo")[0].getValue()).isEqualTo("bletch"); in canOverrideExistingHeaderValue()
121 assertThat(response.getHeaders("foo")[0].getValue()).isEqualTo("bletch"); in onlyOverridesFirstHeaderValue()
122 assertThat(response.getHeaders("foo")[1].getValue()).isEqualTo("baz"); in onlyOverridesFirstHeaderValue()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/pem/
DPemWriter.java54 if (!obj.getHeaders().isEmpty()) in getOutputSize()
56 for (Iterator it = obj.getHeaders().iterator(); it.hasNext();) in getOutputSize()
81 if (!obj.getHeaders().isEmpty()) in writeObject()
83 for (Iterator it = obj.getHeaders().iterator(); it.hasNext();) in writeObject()
DPemObject.java49 public List getHeaders() in getHeaders() method in PemObject
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/util/io/pem/
DPemWriter.java58 if (!obj.getHeaders().isEmpty()) in getOutputSize()
60 for (Iterator it = obj.getHeaders().iterator(); it.hasNext();) in getOutputSize()
86 if (!obj.getHeaders().isEmpty()) in writeObject()
88 for (Iterator it = obj.getHeaders().iterator(); it.hasNext();) in writeObject()
/external/grpc-grpc-java/core/src/test/java/io/grpc/util/
DRoundRobinLoadBalancerTest.java415 doReturn(headerWithStickinessValue).when(mockArgs).getHeaders(); in noStickinessEnabled_withStickyHeader()
445 doReturn(new Metadata()).when(mockArgs).getHeaders(); in stickinessEnabled_withoutStickyHeader()
458 verify(mockArgs, times(4)).getHeaders(); in stickinessEnabled_withoutStickyHeader()
480 doReturn(headerWithStickinessValue).when(mockArgs).getHeaders(); in stickinessEnabled_withStickyHeader()
488 verify(mockArgs, atLeast(4)).getHeaders(); in stickinessEnabled_withStickyHeader()
516 doReturn(headerWithStickinessValue1).when(mockArgs).getHeaders(); in stickinessEnabled_withDifferentStickyHeaders()
519 doReturn(headerWithStickinessValue2).when(mockArgs).getHeaders(); in stickinessEnabled_withDifferentStickyHeaders()
522 doReturn(headerWithStickinessValue1).when(mockArgs).getHeaders(); in stickinessEnabled_withDifferentStickyHeaders()
525 doReturn(headerWithStickinessValue2).when(mockArgs).getHeaders(); in stickinessEnabled_withDifferentStickyHeaders()
533 verify(mockArgs, atLeast(4)).getHeaders(); in stickinessEnabled_withDifferentStickyHeaders()
[all …]
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpSessionHeadersTest.java64 assertEquals(ipAddress, session.getHeaders().get("remote-addr")); in testHeadersRemoteIp()
65 assertEquals(ipAddress, session.getHeaders().get("http-client-ip")); in testHeadersRemoteIp()
/external/volley/src/test/java/com/android/volley/mock/
DMockHttpStack.java67 if (request.getHeaders() != null) { in executeRequest()
68 mLastHeaders.putAll(request.getHeaders()); in executeRequest()
/external/nanohttpd/fileupload/src/main/java/fi/iki/elonen/
DNanoFileUpload.java68 String cl1 = session.getHeaders().get("content-length"); in contentLength()
84 return this.session.getHeaders().get("content-type"); in getContentType()
/external/volley/src/test/java/com/android/volley/toolbox/
DAdaptedHttpStackTest.java68 assertEquals(Collections.emptyList(), response.getHeaders()); in emptyResponse()
85 assertEquals(Collections.emptyList(), response.getHeaders()); in nonEmptyResponse()
126 assertEquals(expectedHeaders, response.getHeaders()); in responseWithHeaders()
/external/apache-http/src/org/apache/http/message/
DAbstractHttpMessage.java78 public Header[] getHeaders(final String name) { in getHeaders() method in AbstractHttpMessage
79 return this.headergroup.getHeaders(name); in getHeaders()
DHeaderGroup.java150 Header[] headers = getHeaders(name); in getCondensedHeader()
178 public Header[] getHeaders(String name) { in getHeaders() method in HeaderGroup
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/
DGrpclbLoadBalancerTest.java312 when(args1.getHeaders()).thenReturn(headers1); in roundRobinPickerNoDrop()
314 verify(args1).getHeaders(); in roundRobinPickerNoDrop()
319 when(args2.getHeaders()).thenReturn(headers2); in roundRobinPickerNoDrop()
321 verify(args2).getHeaders(); in roundRobinPickerNoDrop()
326 when(args3.getHeaders()).thenReturn(headers3); in roundRobinPickerNoDrop()
328 verify(args3).getHeaders(); in roundRobinPickerNoDrop()
353 when(args1.getHeaders()).thenReturn(headers1); in roundRobinPickerWithDrop()
355 verify(args1).getHeaders(); in roundRobinPickerWithDrop()
361 when(args2.getHeaders()).thenReturn(headers2); in roundRobinPickerWithDrop()
363 verify(args2, never()).getHeaders(); in roundRobinPickerWithDrop()
[all …]
/external/oauth/core/src/main/java/net/oauth/client/
DURLConnectionResponse.java50 this.headers.addAll(getHeaders()); in URLConnectionResponse()
75 private List<Map.Entry<String, String>> getHeaders() { in getHeaders() method in URLConnectionResponse
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DRecordedRequest.java110 public List<String> getHeaders() { in getHeaders() method in RecordedRequest
131 public List<String> getHeaders(String name) { in getHeaders() method in RecordedRequest
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/
DHttpURLConnectionImpl.java161 private Headers getHeaders() throws IOException { in getHeaders() method in HttpURLConnectionImpl
192 return getHeaders().value(position); in getHeaderField()
207 : getHeaders().get(fieldName); in getHeaderField()
215 return getHeaders().name(position); in getHeaderFieldKey()
223 return OkHeaders.toMultimap(getHeaders(), in getHeaderFields()
/external/okhttp/repackaged/okhttp-urlconnection/src/main/java/com/android/okhttp/internal/huc/
DHttpURLConnectionImpl.java165 private Headers getHeaders() throws IOException { in getHeaders() method in HttpURLConnectionImpl
196 return getHeaders().value(position); in getHeaderField()
211 : getHeaders().get(fieldName); in getHeaderField()
219 return getHeaders().name(position); in getHeaderFieldKey()
227 return OkHeaders.toMultimap(getHeaders(), in getHeaderFields()
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/
DHttpMethodResponse.java59 this.headers.addAll(getHeaders()); in HttpMethodResponse()
79 private List<Map.Entry<String, String>> getHeaders() in getHeaders() method in HttpMethodResponse
/external/nanohttpd/fileupload/src/test/java/fi/iki/elonen/
DTestNanoFileUpLoad.java124 this.header = session.getHeaders(); in serve()
129 session.getHeaders().put("content-length", "AA"); in serve()
151 fileItem.setHeaders(item.getHeaders()); in serve()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DJavaApiConverterTest.java107 @Override public Map<String, List<String>> getHeaders() throws IOException { in createOkResponseForCacheGet()
139 @Override public Map<String, List<String>> getHeaders() throws IOException { in createOkResponseForCacheGet_withMissingStatusLine()
167 @Override public Map<String, List<String>> getHeaders() throws IOException { in createOkResponseForCacheGet_secure()
517 Map<String, List<String>> javaHeaders = javaCacheResponse.getHeaders(); in createJavaCacheResponse_httpGet()
541 Map<String, List<String>> javaHeaders = javaCacheResponse.getHeaders(); in createJavaCacheResponse_httpPost()
568 Map<String, List<String>> javaHeaders = javaCacheResponse.getHeaders(); in createJavaCacheResponse_httpsPost()
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
DJavaApiConverter.java203 Headers responseHeaders = createHeaders(javaResponse.getHeaders()); in createOkResponseForCacheGet()
329 public Map<String, List<String>> getHeaders() throws IOException { in createJavaCacheResponse() method
343 public Map<String, List<String>> getHeaders() throws IOException { in createJavaCacheResponse()
400 Map<String, List<String>> javaResponseHeaders = javaResponse.getHeaders();
452 Map<String, List<String>> javaResponseHeaders = javaResponse.getHeaders();
/external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/internal/huc/
DJavaApiConverter.java205 Headers responseHeaders = createHeaders(javaResponse.getHeaders()); in createOkResponseForCacheGet()
331 public Map<String, List<String>> getHeaders() throws IOException { in createJavaCacheResponse() method
345 public Map<String, List<String>> getHeaders() throws IOException { in createJavaCacheResponse()
402 Map<String, List<String>> javaResponseHeaders = javaResponse.getHeaders();
454 Map<String, List<String>> javaResponseHeaders = javaResponse.getHeaders();
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DInternalRewrite.java56 public Map<String, String> getHeaders() { in getHeaders() method in InternalRewrite
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DPushPromise.java42 public Headers getHeaders() { in getHeaders() method in PushPromise

1234