/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/ |
D | FakeHttpLayer.java | 15 import org.apache.http.HttpResponse; 26 private final List<HttpResponse> httpResponses = new ArrayList<>(); 28 private HttpResponse defaultHttpResponse; 46 public void addPendingHttpResponse(final HttpResponse httpResponse) { in addPendingHttpResponse() 49 public HttpResponse getResponse(HttpRequest request) { in addPendingHttpResponse() 59 public void addHttpResponseRule(String method, String uri, HttpResponse response) { in addHttpResponseRule() 63 public void addHttpResponseRule(String uri, HttpResponse response) { in addHttpResponseRule() 71 public void addHttpResponseRule(RequestMatcher requestMatcher, HttpResponse response) { in addHttpResponseRule() 81 …public void addHttpResponseRule(RequestMatcher requestMatcher, List<? extends HttpResponse> respon… in addHttpResponseRule() 89 public void setDefaultHttpResponse(HttpResponse defaultHttpResponse) { in setDefaultHttpResponse() [all …]
|
D | FakeHttp.java | 6 import org.apache.http.HttpResponse; 43 public static void addPendingHttpResponse(HttpResponse httpResponse) { in addPendingHttpResponse() 120 public static void addHttpResponseRule(String method, String uri, HttpResponse response) { in addHttpResponseRule() 130 public static void addHttpResponseRule(String uri, HttpResponse response) { in addHttpResponseRule() 150 public static void addHttpResponseRule(RequestMatcher requestMatcher, HttpResponse response) { in addHttpResponseRule() 162 …public static void addHttpResponseRule(RequestMatcher requestMatcher, List<? extends HttpResponse>… in addHttpResponseRule() 174 public static void setDefaultHttpResponse(HttpResponse defaultHttpResponse) { in setDefaultHttpResponse()
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | BasicNetworkTest.java | 73 HttpResponse fakeResponse = in headersAndPostParams() 74 new HttpResponse(200, Collections.<Header>emptyList(), 6, responseStream); in headersAndPostParams() 102 HttpResponse fakeResponse = new HttpResponse(HttpURLConnection.HTTP_NOT_MODIFIED, headers); in notModified() 136 HttpResponse fakeResponse = new HttpResponse(HttpURLConnection.HTTP_NOT_MODIFIED, headers); in notModified_legacyCache() 198 HttpResponse fakeResponse = new HttpResponse(401, Collections.<Header>emptyList()); in unauthorized() 216 HttpResponse fakeResponse = new HttpResponse(403, Collections.<Header>emptyList()); in forbidden() 235 HttpResponse fakeResponse = new HttpResponse(i, Collections.<Header>emptyList()); in redirect() 260 HttpResponse fakeResponse = new HttpResponse(i, Collections.<Header>emptyList()); in otherClientError() 281 HttpResponse fakeResponse = new HttpResponse(i, Collections.<Header>emptyList()); in serverError_enableRetries() 303 HttpResponse fakeResponse = new HttpResponse(i, Collections.<Header>emptyList()); in serverError_disableRetries()
|
D | BaseHttpStackTest.java | 41 public HttpResponse executeRequest( in legacyRequestWithoutBody() 46 return new HttpResponse(12345, Collections.<Header>emptyList()); in legacyRequestWithoutBody() 49 org.apache.http.HttpResponse resp = stack.performRequest(REQUEST, ADDITIONAL_HEADERS); in legacyRequestWithoutBody() 60 public HttpResponse executeRequest( in legacyResponseWithBody() 65 return new HttpResponse( in legacyResponseWithBody() 69 org.apache.http.HttpResponse resp = stack.performRequest(REQUEST, ADDITIONAL_HEADERS); in legacyResponseWithBody() 81 public HttpResponse executeRequest( in legacyResponseHeaders() 90 return new HttpResponse(12345, headers); in legacyResponseHeaders() 93 org.apache.http.HttpResponse resp = stack.performRequest(REQUEST, ADDITIONAL_HEADERS); in legacyResponseHeaders()
|
D | AdaptedHttpStackTest.java | 19 import org.apache.http.HttpResponse; 36 @Mock private HttpResponse mHttpResponse; 64 com.android.volley.toolbox.HttpResponse response = in emptyResponse() 81 com.android.volley.toolbox.HttpResponse response = in nonEmptyResponse() 115 com.android.volley.toolbox.HttpResponse response = in responseWithHeaders()
|
/external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/ |
D | ShadowDefaultRequestDirectorTest.java | 20 import org.apache.http.HttpResponse; 56 public long getKeepAliveDuration(HttpResponse httpResponse, HttpContext httpContext) { in setUp_EnsureStaticStateIsReset() 84 HttpResponse response = requestDirector.execute(null, new HttpGet("http://example.com"), null); in shouldGetHttpResponseFromExecute() 98 HttpResponse response = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldPreferPendingResponses() 110 HttpResponse response = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule() 123 HttpResponse response = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule_MatchingMethod() 134 HttpResponse getResponse = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule_AnyMethod() 139 HttpResponse postResponse = in shouldReturnRequestsByRule_AnyMethod() 153 HttpResponse getResponse = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams() 159 HttpResponse postResponse = in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams() [all …]
|
D | TestHttpResponseTest.java | 7 import org.apache.http.HttpResponse; 15 HttpResponse resp = in shouldSupportGetFirstHeader() 29 HttpResponse resp = in shouldSupportGetLastHeader() 43 HttpResponse resp = in shouldSupportContainsHeader() 53 HttpResponse resp = in shouldSupportHeaderIterator() 68 HttpResponse resp = in shouldSupportHeaderIteratorWithArg() 86 HttpResponse resp = in shouldSupportGetHeadersWithArg()
|
/external/apache-http/src/org/apache/http/protocol/ |
D | HttpRequestExecutor.java | 41 import org.apache.http.HttpResponse; 85 final HttpResponse response) { in canResponseHaveBody() 108 public HttpResponse execute( in execute() 124 HttpResponse response = doSendRequest(request, conn, context); in execute() 188 protected HttpResponse doSendRequest( in doSendRequest() 203 HttpResponse response = null; in doSendRequest() 264 protected HttpResponse doReceiveResponse( in doReceiveResponse() 279 HttpResponse response = null; in doReceiveResponse() 311 final HttpResponse response, in postProcess()
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/ |
D | GZipIntegrationTest.java | 48 import org.apache.http.HttpResponse; 87 HttpResponse response = httpclient.execute(request); in contentEncodingShouldBeAddedToFixedLengthResponses() 99 HttpResponse response = httpclient.execute(request); in contentEncodingShouldBeAddedToChunkedResponses() 110 HttpResponse response = httpclient.execute(request); in shouldFindCorrectAcceptEncodingAmongMany() 121 HttpResponse response = httpclient.execute(request); in contentLengthShouldBeRemovedFromZippedResponses() 131 HttpResponse response = new DecompressingHttpClient(httpclient).execute(request); in fixedLengthContentIsEncodedProperly() 141 HttpResponse response = new DecompressingHttpClient(httpclient).execute(request); in chunkedContentIsEncodedProperly() 149 HttpResponse response = httpclient.execute(request); in noGzipWithoutAcceptEncoding() 161 HttpResponse response = httpclient.execute(request); in contentShouldNotBeGzippedIfContentLengthIsAddedManually()
|
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/ |
D | OkApacheClientTest.java | 16 import org.apache.http.HttpResponse; 51 HttpResponse response = client.execute(request); in success() 61 HttpResponse response = client.execute(request); in redirect() 70 HttpResponse response = client.execute(request); in sessionExpired() 79 HttpResponse response1 = client.execute(request1); in headers() 85 HttpResponse response2 = client.execute(request2); in headers() 157 HttpResponse response1 = client.execute(request1); in contentType() 165 HttpResponse response2 = client.execute(request2); in contentType() 173 HttpResponse response3 = client.execute(request3); in contentType() 184 HttpResponse response = client.execute(request); in contentTypeIsCaseInsensitive() [all …]
|
/external/apache-http/src/org/apache/http/impl/client/ |
D | TunnelRefusedException.java | 35 import org.apache.http.HttpResponse; 47 private final HttpResponse response; 49 public TunnelRefusedException(final String message, final HttpResponse response) { in TunnelRefusedException() 54 public HttpResponse getResponse() { in getResponse()
|
D | DefaultTargetAuthenticationHandler.java | 37 import org.apache.http.HttpResponse; 58 final HttpResponse response, in isAuthenticationRequested() 68 final HttpResponse response, in getChallenges()
|
D | DefaultProxyAuthenticationHandler.java | 37 import org.apache.http.HttpResponse; 58 final HttpResponse response, in isAuthenticationRequested() 68 final HttpResponse response, in getChallenges()
|
/external/apache-http/src/org/apache/http/client/ |
D | HttpClient.java | 38 import org.apache.http.HttpResponse; 101 HttpResponse execute(HttpUriRequest request) in execute() 122 HttpResponse execute(HttpUriRequest request, HttpContext context) in execute() 144 HttpResponse execute(HttpHost target, HttpRequest request) in execute() 167 HttpResponse execute(HttpHost target, HttpRequest request, in execute()
|
D | AuthenticationHandler.java | 37 import org.apache.http.HttpResponse; 54 HttpResponse response, in isAuthenticationRequested() 58 HttpResponse response, in getChallenges() 63 HttpResponse response, in selectScheme()
|
D | RedirectHandler.java | 36 import org.apache.http.HttpResponse; 69 boolean isRedirectRequested(HttpResponse response, HttpContext context); in isRedirectRequested() 81 URI getLocationURI(HttpResponse response, HttpContext context) in getLocationURI()
|
/external/python/oauth2client/tests/contrib/django_util/ |
D | test_decorators.py | 55 return http.HttpResponse("test") # pragma: NO COVER 77 return http.HttpResponse('test') 101 return http.HttpResponse('hello world') # pragma: NO COVER 129 return http.HttpResponse('test') # pragma: NO COVER 148 return http.HttpResponse("test") 173 return http.HttpResponse("test") # pragma: NO COVER 191 return http.HttpResponse("hello world") # pragma: NO COVER 226 return http.HttpResponse("test") # pragma: NO COVER 241 return http.HttpResponse("test") # pragma: NO COVER
|
/external/volley/src/test/java/com/android/volley/mock/ |
D | MockHttpStack.java | 22 import com.android.volley.toolbox.HttpResponse; 29 private HttpResponse mResponseToReturn; 51 public void setResponseToReturn(HttpResponse response) { in setResponseToReturn() 60 public HttpResponse executeRequest(Request<?> request, Map<String, String> additionalHeaders) in executeRequest()
|
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/ |
D | OkApacheClient.java | 18 import org.apache.http.HttpResponse; 79 private static HttpResponse transformResponse(Response response) throws IOException { in transformResponse() 156 @Override public HttpResponse execute(HttpUriRequest request) throws IOException { in execute() 160 @Override public HttpResponse execute(HttpUriRequest request, HttpContext context) in execute() 165 @Override public HttpResponse execute(HttpHost host, HttpRequest request) throws IOException { in execute() 169 @Override public HttpResponse execute(HttpHost host, HttpRequest request, HttpContext context) in execute() 193 HttpResponse response = execute(host, request, context); in execute() 201 private static void consumeContentQuietly(HttpResponse response) { in consumeContentQuietly()
|
/external/volley/src/main/java/com/android/volley/toolbox/ |
D | AdaptedHttpStack.java | 44 public HttpResponse executeRequest(Request<?> request, Map<String, String> additionalHeaders) in executeRequest() 46 org.apache.http.HttpResponse apacheResp; in executeRequest() 64 return new HttpResponse(statusCode, headerList); in executeRequest() 72 return new HttpResponse( in executeRequest()
|
D | HttpResponse.java | 24 public final class HttpResponse { class 37 public HttpResponse(int statusCode, List<Header> headers) { in HttpResponse() method in HttpResponse 50 public HttpResponse( in HttpResponse() method in HttpResponse
|
D | BaseHttpStack.java | 52 public abstract HttpResponse executeRequest( in executeRequest() 65 public final org.apache.http.HttpResponse performRequest( in performRequest() 68 HttpResponse response = executeRequest(request, additionalHeaders); in performRequest()
|
/external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/ |
D | ShadowAndroidHttpClient.java | 8 import org.apache.http.HttpResponse; 49 protected HttpResponse execute(HttpUriRequest httpUriRequest) in execute() 55 protected HttpResponse execute(HttpUriRequest httpUriRequest, HttpContext httpContext) in execute() 61 protected HttpResponse execute(HttpHost httpHost, HttpRequest httpRequest) in execute() 67 protected HttpResponse execute( in execute()
|
/external/apache-http/src/org/apache/http/impl/ |
D | AbstractHttpClientConnection.java | 42 import org.apache.http.HttpResponse; 182 public HttpResponse receiveResponseHeader() in receiveResponseHeader() 185 HttpResponse response = (HttpResponse) this.responseParser.parse(); in receiveResponseHeader() 192 public void receiveResponseEntity(final HttpResponse response) in receiveResponseEntity()
|
D | DefaultHttpResponseFactory.java | 36 import org.apache.http.HttpResponse; 90 public HttpResponse newHttpResponse(final ProtocolVersion ver, in newHttpResponse() 104 public HttpResponse newHttpResponse(final StatusLine statusline, in newHttpResponse()
|