Home
last modified time | relevance | path

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

123

/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/v1/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/
DTestHttpResponseTest.java97 Header[] headers = resp.getHeaders("Location"); in shouldSupportGetHeadersWithArg()
109 assertThat(response.getHeaders("foo")[0].getValue(), CoreMatchers.equalTo("bar")); in canAddNewBasicHeader()
117 assertThat(response.getHeaders("foo")[0].getValue(), CoreMatchers.equalTo("bletch")); in canOverrideExistingHeaderValue()
125 assertThat(response.getHeaders("foo")[0].getValue(), CoreMatchers.equalTo("bletch")); in onlyOverridesFirstHeaderValue()
126 assertThat(response.getHeaders("foo")[1].getValue(), CoreMatchers.equalTo("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/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.java69 if (request.getHeaders() != null) { in performRequest()
70 mLastHeaders.putAll(request.getHeaders()); in performRequest()
/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/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/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/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/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
DMockWebServer.java689 .headers(request.getHeaders())
694 .headers(response.getHeaders())
721 Headers headers = response.getHeaders();
937 Headers headers = response.getHeaders();
964 Headers pushPromiseHeaders = pushPromise.getHeaders();
970 requestQueue.add(new RecordedRequest(requestLine, pushPromise.getHeaders(), chunkSizes, 0,
/external/apache-http/src/org/apache/http/
DHttpMessage.java75 Header[] getHeaders(String name); in getHeaders() method
/external/apache-http/src/org/apache/http/impl/client/
DDefaultProxyAuthenticationHandler.java73 Header[] headers = response.getHeaders(AUTH.PROXY_AUTH); in getChallenges()
DDefaultTargetAuthenticationHandler.java73 Header[] headers = response.getHeaders(AUTH.WWW_AUTH); in getChallenges()
/external/nist-sip/java/gov/nist/javax/sip/clientauthutils/
DAuthenticationHelperImpl.java157 ListIterator<Header> iterator = reoriginatedRequest.getHeaders(headerName); in handleChallenge()
178 authHeaders = challenge.getHeaders(WWWAuthenticateHeader.NAME); in handleChallenge()
180 authHeaders = challenge.getHeaders(ProxyAuthenticateHeader.NAME); in handleChallenge()
/external/okhttp/okhttp-hpacktests/src/test/java/com/squareup/okhttp/internal/spdy/
DHpackRoundTripTest.java56 hpackWriter.writeHeaders(caze.getHeaders()); in testRoundTrip()

123