Home
last modified time | relevance | path

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

1234

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DFakeHttpLayer.java25 HttpResponse defaultHttpResponse;
26 private HttpResponse defaultResponse;
41 public void addPendingHttpResponse(final HttpResponse httpResponse) { in addPendingHttpResponse()
44 public HttpResponse getResponse(HttpRequest request) { in addPendingHttpResponse()
54 public void addHttpResponseRule(String method, String uri, HttpResponse response) { in addHttpResponseRule()
58 public void addHttpResponseRule(String uri, HttpResponse response) { in addHttpResponseRule()
66 public void addHttpResponseRule(RequestMatcher requestMatcher, HttpResponse response) { in addHttpResponseRule()
76 …public void addHttpResponseRule(RequestMatcher requestMatcher, List<? extends HttpResponse> respon… in addHttpResponseRule()
84 public void setDefaultHttpResponse(HttpResponse defaultHttpResponse) { in setDefaultHttpResponse()
92 private HttpResponse findResponse(HttpRequest httpRequest) throws HttpException, IOException { in findResponse()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DDefaultRequestDirectorTest.java11 import org.apache.http.HttpResponse;
51 … @Override public long getKeepAliveDuration(HttpResponse httpResponse, HttpContext httpContext) { in setUp_EnsureStaticStateIsReset()
66HttpResponse response = requestDirector.execute(null, new HttpGet("http://example.com"), null); in shouldGetHttpResponseFromExecute()
80 HttpResponse response = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldPreferPendingResponses()
92 HttpResponse response = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule()
105 HttpResponse response = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule_MatchingMethod()
115HttpResponse getResponse = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule_AnyMethod()
120HttpResponse postResponse = requestDirector.execute(null, new HttpPost("http://some.uri"), null); in shouldReturnRequestsByRule_AnyMethod()
133HttpResponse getResponse = requestDirector.execute(null, new HttpGet("http://some.uri"), null); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()
138HttpResponse postResponse = requestDirector.execute(null, new HttpPost("http://some.uri"), null); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()
[all …]
/external/apache-http/src/org/apache/http/protocol/
DHttpRequestExecutor.java41 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()
DHttpExpectationVerifier.java36 import org.apache.http.HttpResponse;
75 void verify(HttpRequest request, HttpResponse response, HttpContext context) in verify()
DHttpRequestHandler.java38 import org.apache.http.HttpResponse;
55 void handle(HttpRequest request, HttpResponse response, HttpContext context) in handle()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DGZipIntegrationTest.java48 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/apache-http/src/org/apache/http/impl/client/
DTunnelRefusedException.java35 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()
DDefaultTargetAuthenticationHandler.java37 import org.apache.http.HttpResponse;
58 final HttpResponse response, in isAuthenticationRequested()
68 final HttpResponse response, in getChallenges()
DDefaultProxyAuthenticationHandler.java37 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/
DHttpClient.java38 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()
DAuthenticationHandler.java37 import org.apache.http.HttpResponse;
54 HttpResponse response, in isAuthenticationRequested()
58 HttpResponse response, in getChallenges()
63 HttpResponse response, in selectScheme()
DRedirectHandler.java36 import org.apache.http.HttpResponse;
69 boolean isRedirectRequested(HttpResponse response, HttpContext context); in isRedirectRequested()
81 URI getLocationURI(HttpResponse response, HttpContext context) in getLocationURI()
DResponseHandler.java35 import org.apache.http.HttpResponse;
62 T handleResponse(HttpResponse response) throws ClientProtocolException, IOException; in handleResponse()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/
DTestHttpResponseTest.java5 import org.apache.http.HttpResponse;
19 HttpResponse resp = in shouldSupportGetFirstHeader()
33 HttpResponse resp = in shouldSupportGetLastHeader()
47 HttpResponse resp = in shouldSupportContainsHeader()
57 HttpResponse resp = in shouldSupportHeaderIterator()
72 HttpResponse resp = in shouldSupportHeaderIteratorWithArg()
90 HttpResponse resp = in shouldSupportGetHeadersWithArg()
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java16 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/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
DOkApacheClient.java18 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAndroidHttpClient.java9 import org.apache.http.HttpResponse;
51 …public HttpResponse execute(HttpUriRequest httpUriRequest) throws IOException, ClientProtocolExcep… in execute()
56 …public HttpResponse execute(HttpUriRequest httpUriRequest, HttpContext httpContext) throws IOExcep… in execute()
61 …public HttpResponse execute(HttpHost httpHost, HttpRequest httpRequest) throws IOException, Client… in execute()
66 …public HttpResponse execute(HttpHost httpHost, HttpRequest httpRequest, HttpContext httpContext) t… in execute()
DHttpResponseGenerator.java4 import org.apache.http.HttpResponse;
7 public HttpResponse getResponse(HttpRequest request); in getResponse()
/external/apache-http/src/org/apache/http/impl/
DAbstractHttpClientConnection.java42 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()
DDefaultHttpResponseFactory.java36 import org.apache.http.HttpResponse;
90 public HttpResponse newHttpResponse(final ProtocolVersion ver, in newHttpResponse()
104 public HttpResponse newHttpResponse(final StatusLine statusline, in newHttpResponse()
DNoConnectionReuseStrategy.java35 import org.apache.http.HttpResponse;
59 public boolean keepAlive(final HttpResponse response, final HttpContext context) { in keepAlive()
/external/autotest/frontend/
Dviews_common.py1 from django.http import HttpResponse
9 return HttpResponse(doc)
/external/apache-http/src/org/apache/http/
DHttpResponseFactory.java64 HttpResponse newHttpResponse(ProtocolVersion ver, int status, in newHttpResponse()
78 HttpResponse newHttpResponse(StatusLine statusline, in newHttpResponse()
DHttpServerConnection.java82 void sendResponseHeader(HttpResponse response) in sendResponseHeader()
91 void sendResponseEntity(HttpResponse response) in sendResponseEntity()
/external/apache-http/src/org/apache/http/conn/
DConnectionKeepAliveStrategy.java34 import org.apache.http.HttpResponse;
74 long getKeepAliveDuration(HttpResponse response, HttpContext context); in getKeepAliveDuration()

1234