Home
last modified time | relevance | path

Searched refs:httpResponse (Results 1 – 19 of 19) sorted by relevance

/external/volley/core/src/main/java/com/android/volley/toolbox/
DBasicAsyncNetwork.java78 final HttpResponse httpResponse, in onRequestSucceeded() argument
80 final int statusCode = httpResponse.getStatusCode(); in onRequestSucceeded()
81 final List<Header> responseHeaders = httpResponse.getHeaders(); in onRequestSucceeded()
91 byte[] responseContents = httpResponse.getContentBytes(); in onRequestSucceeded()
92 if (responseContents == null && httpResponse.getContent() == null) { in onRequestSucceeded()
102 httpResponse, in onRequestSucceeded()
113 final InputStream inputStream = httpResponse.getContent(); in onRequestSucceeded()
118 httpResponse, in onRequestSucceeded()
132 @Nullable HttpResponse httpResponse, in onRequestFailed() argument
137 request, exception, requestStartMs, httpResponse, responseContents); in onRequestFailed()
[all …]
DAsyncHttpStack.java43 void onSuccess(HttpResponse httpResponse); in onSuccess() argument
112 public void onSuccess(HttpResponse httpResponse) { in executeRequest()
115 httpResponse, in executeRequest()
152 if (response.httpResponse != null) { in executeRequest()
153 return response.httpResponse; in executeRequest()
162 HttpResponse httpResponse; field in AsyncHttpStack.Response
167 @Nullable HttpResponse httpResponse, in Response()
170 this.httpResponse = httpResponse; in Response()
DBasicNetwork.java97 HttpResponse httpResponse = null; in performRequest() local
104 httpResponse = mBaseHttpStack.executeRequest(request, additionalRequestHeaders); in performRequest()
105 int statusCode = httpResponse.getStatusCode(); in performRequest()
107 responseHeaders = httpResponse.getHeaders(); in performRequest()
116 InputStream inputStream = httpResponse.getContent(); in performRequest()
120 inputStream, httpResponse.getContentLength(), mPool); in performRequest()
146 request, e, requestStart, httpResponse, responseContents); in performRequest()
DNetworkUtility.java158 @Nullable HttpResponse httpResponse, in shouldRetryException() argument
167 if (httpResponse != null) { in shouldRetryException()
168 statusCode = httpResponse.getStatusCode(); in shouldRetryException()
179 responseHeaders = httpResponse.getHeaders(); in shouldRetryException()
/external/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/testing/
DTestHttpServer.java113 (httpRequest, httpResponse, httpContext) -> { in registerFile()
116 httpResponse.addHeader(ETAG_HEADER, eTag); in registerFile()
117 setHttpStatusCode(httpRequest, httpResponse, eTag); in registerFile()
118 if (httpResponse.getStatusLine().getStatusCode() == HttpStatus.SC_NOT_MODIFIED in registerFile()
123 httpResponse.setStatusCode(HttpStatus.SC_OK); in registerFile()
126 httpResponse.setEntity(new FileEntity(file, contentType)); in registerFile()
184 HttpRequest httpRequest, HttpResponse httpResponse, String eTag) { in setHttpStatusCode() argument
195 httpResponse.setStatusCode( in setHttpStatusCode()
199 httpResponse.setStatusCode(HttpStatus.SC_OK); in setHttpStatusCode()
/external/oauth/core/src/main/java/net/oauth/client/httpclient4/
DHttpMethodResponse.java56 this.httpResponse = response; in HttpMethodResponse()
63 private final HttpResponse httpResponse; field in HttpMethodResponse
70 return httpResponse.getStatusLine().getStatusCode(); in getStatusCode()
76 return httpResponse.getEntity().getContent(); in openBody()
82 Header[] allHeaders = httpResponse.getAllHeaders(); in getHeaders()
122 String value = httpResponse.getStatusLine().toString(); in dump()
124 for (Header header : httpResponse.getAllHeaders()) { in dump()
DHttpClient4.java90 HttpResponse httpResponse = client.execute(httpRequest); in execute() local
91 … return new HttpMethodResponse(httpRequest, httpResponse, excerpt, request.getContentCharset()); in execute()
/external/robolectric/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DFakeHttpLayer.java46 public void addPendingHttpResponse(final HttpResponse httpResponse) { in addPendingHttpResponse() argument
50 return httpResponse; in addPendingHttpResponse()
117 HttpResponse httpResponse = findResponse(httpRequest); in emulateRequest() local
120 " --> " + (httpResponse == null ? null : httpResponse.getStatusLine().getStatusCode())); in emulateRequest()
123 if (httpResponse == null) { in emulateRequest()
131 HttpParams params = httpResponse.getParams(); in emulateRequest()
141 addHttpResponse(httpResponse); in emulateRequest()
142 return httpResponse; in emulateRequest()
DFakeHttp.java50 public static void addPendingHttpResponse(HttpResponse httpResponse) { in addPendingHttpResponse() argument
51 getFakeHttpLayer().addPendingHttpResponse(httpResponse); in addPendingHttpResponse()
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/
DFakeHttpLayer.java46 public void addPendingHttpResponse(final HttpResponse httpResponse) { in addPendingHttpResponse() argument
50 return httpResponse; in addPendingHttpResponse()
117 HttpResponse httpResponse = findResponse(httpRequest); in emulateRequest() local
119 …System.out.println(" --> " + (httpResponse == null ? null : httpResponse.getStatusLine().getStatu… in emulateRequest()
122 if (httpResponse == null) { in emulateRequest()
126 HttpParams params = httpResponse.getParams(); in emulateRequest()
136 addHttpResponse(httpResponse); in emulateRequest()
137 return httpResponse; in emulateRequest()
DFakeHttp.java43 public static void addPendingHttpResponse(HttpResponse httpResponse) { in addPendingHttpResponse() argument
44 getFakeHttpLayer().addPendingHttpResponse(httpResponse); in addPendingHttpResponse()
/external/oauth/core/src/main/java/net/oauth/client/
DOAuthClient.java316 HttpResponseMessage httpResponse = http.execute(httpRequest); in invoke() local
317 httpResponse = HttpMessageDecoder.decode(httpResponse); in invoke()
318 OAuthMessage response = new OAuthResponseMessage(httpResponse); in invoke()
319 if (httpResponse.getStatusCode() != HttpResponseMessage.STATUS_OK) { in invoke()
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
DOkApacheClient.java82 BasicHttpResponse httpResponse = new BasicHttpResponse(HTTP_1_1, code, message); in transformResponse() local
86 httpResponse.setEntity(entity); in transformResponse()
92 httpResponse.addHeader(name, value); in transformResponse()
100 return httpResponse; in transformResponse()
/external/ot-br-posix/src/web/web-service/
Dweb_server.cpp169 std::string httpResponse; in HandleHttpRequest() local
172 httpResponse = aCallback(request->content.string(), this); in HandleHttpRequest()
175 … *response << OT_RESPONSE_SUCCESS_STATUS << OT_RESPONSE_HEADER_LENGTH << httpResponse.length() in HandleHttpRequest()
176 << OT_RESPONSE_PLACEHOLD << httpResponse; in HandleHttpRequest()
/external/webrtc/examples/objc/AppRTCMobile/common/
DARDUtilities.m78 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)response;
79 if (httpResponse.statusCode != 200) {
/external/robolectric/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/
DFakeHttpTest.java50 public long getKeepAliveDuration(HttpResponse httpResponse, HttpContext httpContext) { in makeRequest()
DShadowDefaultRequestDirectorTest.java53 connectionKeepAliveStrategy = (httpResponse, httpContext) -> 0; in setUp_EnsureStaticStateIsReset()
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/
DFakeHttpTest.java49 public long getKeepAliveDuration(HttpResponse httpResponse, HttpContext httpContext) { in makeRequest()
DShadowDefaultRequestDirectorTest.java56 public long getKeepAliveDuration(HttpResponse httpResponse, HttpContext httpContext) { in setUp_EnsureStaticStateIsReset()