Home
last modified time | relevance | path

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

123

/external/robolectric/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/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/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()
DDefaultProxyAuthenticationHandler.java37 import org.apache.http.HttpResponse;
58 final HttpResponse response, in isAuthenticationRequested()
68 final HttpResponse response, in getChallenges()
DDefaultTargetAuthenticationHandler.java37 import org.apache.http.HttpResponse;
58 final HttpResponse response, in isAuthenticationRequested()
68 final HttpResponse response, in getChallenges()
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java16 import org.apache.http.HttpResponse;
50 HttpResponse response = client.execute(request); in success()
60 HttpResponse response = client.execute(request); in redirect()
69 HttpResponse response = client.execute(request); in sessionExpired()
78 HttpResponse response1 = client.execute(request1); in headers()
84 HttpResponse response2 = client.execute(request2); in headers()
138 HttpResponse response1 = client.execute(request1); in contentType()
146 HttpResponse response2 = client.execute(request2); in contentType()
154 HttpResponse response3 = client.execute(request3); in contentType()
165 HttpResponse response = client.execute(request); in contentTypeIsCaseInsensitive()
[all …]
/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()
DRequestDirector.java38 import org.apache.http.HttpResponse;
92 HttpResponse execute(HttpHost target, HttpRequest request, in execute()
/external/robolectric/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/main/java/com/squareup/okhttp/apache/
DOkApacheClient.java18 import org.apache.http.HttpResponse;
77 private static HttpResponse transformResponse(Response response) throws IOException { in transformResponse()
154 @Override public HttpResponse execute(HttpUriRequest request) throws IOException { in execute()
158 @Override public HttpResponse execute(HttpUriRequest request, HttpContext context) in execute()
163 @Override public HttpResponse execute(HttpHost host, HttpRequest request) throws IOException { in execute()
167 @Override public HttpResponse execute(HttpHost host, HttpRequest request, HttpContext context) in execute()
191 HttpResponse response = execute(host, request, context); in execute()
199 private static void consumeContentQuietly(HttpResponse response) { in consumeContentQuietly()
/external/robolectric/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/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()
DHttpClientConnection.java96 HttpResponse receiveResponseHeader() in receiveResponseHeader()
107 void receiveResponseEntity(HttpResponse response) in receiveResponseEntity()
/external/apache-http/src/org/apache/http/conn/
DConnectionKeepAliveStrategy.java34 import org.apache.http.HttpResponse;
74 long getKeepAliveDuration(HttpResponse response, HttpContext context); in getKeepAliveDuration()

123