Home
last modified time | relevance | path

Searched refs:Response (Results 1 – 25 of 250) sorted by relevance

12345678910

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DResponse.java36 public final class Response { class
44 private Response networkResponse;
45 private Response cacheResponse;
46 private final Response priorResponse;
50 private Response(Builder builder) { in Response() method in Response
157 public Response networkResponse() { in networkResponse()
167 public Response cacheResponse() { in cacheResponse()
177 public Response priorResponse() { in priorResponse()
229 private Response networkResponse;
230 private Response cacheResponse;
[all …]
DCall.java74 public Response execute() throws IOException { in execute()
81 Response result = getResponseWithInterceptorChain(false); in execute()
164 Response response = getResponseWithInterceptorChain(forWebSocket); in execute()
199 private Response getResponseWithInterceptorChain(boolean forWebSocket) throws IOException { in getResponseWithInterceptorChain()
223 @Override public Response proceed(Request request) throws IOException { in proceed()
239 Response getResponse(Request request, boolean forWebSocket) throws IOException { in getResponse()
299 Response response = engine.getResponse(); in getResponse()
DCache.java138 @Override public Response get(Request request) throws IOException {
141 @Override public CacheRequest put(Response response) throws IOException {
147 @Override public void update(Response cached, Response network) throws IOException {
175 Response get(Request request) { in get()
196 Response response = entry.response(request, snapshot); in get()
206 private CacheRequest put(Response response) throws IOException { in put()
247 private void update(Response cached, Response network) { in update()
545 public Entry(Response response) { in Entry()
632 public boolean matches(Request request, Response response) { in matches()
638 public Response response(Request request, DiskLruCache.Snapshot snapshot) { in response()
[all …]
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpDeleteRequestTest.java15 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_… in testDeleteRequestThatDoesntSendBackResponseBody_EmptyString()
33 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_… in testDeleteRequestThatDoesntSendBackResponseBody_NullString()
51 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.NO_CONTENT, NanoHTTPD.MIME_… in testDeleteRequestThatDoesntSendBackResponseBody_NullInputStream()
69 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.OK, "application/xml", "<bo… in testDeleteRequestThatSendsBackResponseBody_Success()
88 …testServer.response = new NanoHTTPD.Response(NanoHTTPD.Response.Status.ACCEPTED, "application/xml"… in testDeleteRequestThatSendsBackResponseBody_Accepted()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DInterceptorTest.java61 final Response interceptorResponse = new Response.Builder() in applicationInterceptorsCanShortCircuitResponses()
70 @Override public Response intercept(Chain chain) throws IOException { in applicationInterceptorsCanShortCircuitResponses()
75 Response response = client.newCall(request).execute(); in applicationInterceptorsCanShortCircuitResponses()
83 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsCannotShortCircuitResponses()
84 return new Response.Builder() in networkInterceptorsCannotShortCircuitResponses()
113 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsCannotCallProceedMultipleTimes()
137 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsCannotChangeServerAddress()
165 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsHaveConnectionAccess()
184 @Override public Response intercept(Chain chain) throws IOException { in networkInterceptorsObserveNetworkHeaders()
193 Response networkResponse = chain.proceed(networkRequest); in networkInterceptorsObserveNetworkHeaders()
[all …]
DCacheTest.java181 Response response = client.newCall(request).execute(); in assertCached()
187 Response cached = cache.get(request); in assertCached()
223 Response response1 = client.newCall(request).execute(); in testResponseCaching()
234 Response response2 = client.newCall(request).execute(); in testResponseCaching()
260 Response response1 = client.newCall(request).execute(); in secureResponseCaching()
271 Response response2 = client.newCall(request).execute(); // Cached! in secureResponseCaching()
299 Response response1 = client.newCall(request).execute(); in responseCachingAndRedirects()
302 Response response2 = client.newCall(request).execute(); // Cached! in responseCachingAndRedirects()
321 Response response1 = client.newCall(request1).execute(); in redirectToCachedResult()
328 Response response2 = client.newCall(request2).execute(); in redirectToCachedResult()
[all …]
DRecordedResponse.java34 public final Response response;
39 public RecordedResponse(Request request, Response response, WebSocket webSocket, String body, in RecordedResponse()
103 Response priorResponse = response.priorResponse(); in priorResponse()
114 Response networkResponse = response.networkResponse(); in networkResponse()
137 Response cacheResponse = response.cacheResponse(); in cacheResponse()
/external/chromium-trace/trace-viewer/third_party/webapp2/tests/
Dresponse_test.py27 rsp = webapp2.Response()
33 rsp = webapp2.Response()
39 rsp = webapp2.Response()
45 rsp = webapp2.Response()
51 rsp = webapp2.Response()
57 rsp = webapp2.Response()
64 rsp = webapp2.Response()
72 rsp = webapp2.Response()
106 rsp = webapp2.Response()
128 rsp = webapp2.Response(body='Page not found!', status=404)
[all …]
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/
DWebSocketResponseHandlerTest.java10 import fi.iki.elonen.NanoHTTPD.Response;
33 private Response response;
61 Response handshakeResponse = responseHandler.serve(session); in testHandshakeReturnsResponseWithExpectedHeaders()
76 Response handshakeResponse = responseHandler.serve(session); in testWrongWebsocketVersionReturnsErrorResponse()
79 assertEquals(Response.Status.BAD_REQUEST, handshakeResponse.getStatus()); in testWrongWebsocketVersionReturnsErrorResponse()
86 Response handshakeResponse = responseHandler.serve(session); in testMissingKeyReturnsErrorResponse()
89 assertEquals(Response.Status.BAD_REQUEST, handshakeResponse.getStatus()); in testMissingKeyReturnsErrorResponse()
95 Response handshakeResponse = responseHandler.serve(session); in testWrongUpgradeHeaderReturnsNullResponse()
102 Response handshakeResponse = responseHandler.serve(session); in testWrongConnectionHeaderReturnsNullResponse()
109 Response handshakeResponse = responseHandler.serve(session); in testConnectionHeaderHandlesKeepAlive_FixingFirefoxConnectIssue()
/external/nanohttpd/webserver/src/main/java/fi/iki/elonen/
DSimpleWebServer.java245 public Response serve(IHTTPSession session) { in serve()
274 private Response respond(Map<String, String> headers, IHTTPSession session, String uri) { in respond()
301Response res = createResponse(Response.Status.REDIRECT, NanoHTTPD.MIME_HTML, "<html><body>Redirect… in respond()
313 … return createResponse(Response.Status.OK, NanoHTTPD.MIME_HTML, listDirectory(uri, f)); in respond()
324 Response response = null; in respond()
337 protected Response getNotFoundResponse() { in getNotFoundResponse()
338 return createResponse(Response.Status.NOT_FOUND, NanoHTTPD.MIME_PLAINTEXT, in getNotFoundResponse()
342 protected Response getForbiddenResponse(String s) { in getForbiddenResponse()
343 return createResponse(Response.Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, "FORBIDDEN: " in getForbiddenResponse()
347 protected Response getInternalErrorResponse(String s) { in getInternalErrorResponse()
[all …]
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
DWebSocketResponseHandler.java8 import fi.iki.elonen.NanoHTTPD.Response;
29 public Response serve(final IHTTPSession session) { in serve()
33 return new Response(Response.Status.BAD_REQUEST, NanoHTTPD.MIME_PLAINTEXT, in serve()
38 return new Response(Response.Status.BAD_REQUEST, NanoHTTPD.MIME_PLAINTEXT, in serve()
43 Response handshakeResponse = webSocket.getHandshakeResponse(); in serve()
47 return new Response(Response.Status.INTERNAL_ERROR, NanoHTTPD.MIME_PLAINTEXT, in serve()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DInternalCache.java19 import com.squareup.okhttp.Response;
29 Response get(Request request) throws IOException; in get()
31 CacheRequest put(Response response) throws IOException; in put()
45 void update(Response cached, Response network) throws IOException; in update()
/external/nist-sip/java/javax/sip/message/
DMessageFactory.java32 Response createResponse(int statusCode, CallIdHeader callId, in createResponse()
37 Response createResponse(int statusCode, CallIdHeader callId, in createResponse()
42 Response createResponse(int statusCode, CallIdHeader callId, in createResponse()
46 Response createResponse(int statusCode, Request request, in createResponse()
50 Response createResponse(int statusCode, Request request, in createResponse()
54 Response createResponse(int statusCode, Request request) in createResponse()
57 Response createResponse(String response) throws ParseException; in createResponse()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DRecordingOkAuthenticator.java20 import com.squareup.okhttp.Response;
26 public final List<Response> responses = new ArrayList<>();
34 public Response onlyResponse() { in onlyResponse()
44 @Override public Request authenticate(Proxy proxy, Response response) { in authenticate()
52 @Override public Request authenticateProxy(Proxy proxy, Response response) { in authenticateProxy()
/external/nist-sip/java/javax/sip/
DResponseEvent.java4 import javax.sip.message.Response;
8 private Response mResponse;
12 Dialog dialog, Response response) { in ResponseEvent()
23 public Response getResponse() { in getResponse()
DDialog.java9 import javax.sip.message.Response;
65 Request createPrack(Response relResponse) in createPrack()
67 Response createReliableProvisionalResponse(int statusCode) in createReliableProvisionalResponse()
74 void sendReliableProvisionalResponse(Response relResponse) in sendReliableProvisionalResponse()
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java269 …public Response serve(String uri, Method method, Map<String, String> headers, Map<String, String> … in serve()
271 return new Response(Response.Status.NOT_FOUND, MIME_PLAINTEXT, "Not Found"); in serve()
283 public Response serve(IHTTPSession session) { in serve()
290 …return new Response(Response.Status.INTERNAL_ERROR, MIME_PLAINTEXT, "SERVER INTERNAL ERROR: IOExce… in serve()
292 return new Response(re.getStatus(), MIME_PLAINTEXT, re.getMessage()); in serve()
536 public static class Response { class in NanoHTTPD
565 public Response(String msg) { in Response() method in NanoHTTPD.Response
572 public Response(IStatus status, String mimeType, InputStream data) { in Response() method in NanoHTTPD.Response
581 public Response(IStatus status, String mimeType, String txt) { in Response() method in NanoHTTPD.Response
789 private final Response.Status status;
[all …]
/external/nanohttpd/core/src/test/java/fi/iki/elonen/integration/
DPutStreamIntegrationTest.java41 …public Response serve(String uri, Method method, Map<String, String> headers, Map<String, String> … in serve()
47 public Response serve(IHTTPSession session) { in serve()
59 return new Response(Response.Status.INTERNAL_ERROR, MIME_PLAINTEXT, e.getMessage()); in serve()
63 return new Response(response); in serve()
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
DCacheAdapter.java19 import com.squareup.okhttp.Response;
46 @Override public Response get(Request request) throws IOException { in get()
54 @Override public CacheRequest put(Response response) throws IOException { in put()
81 @Override public void update(Response cached, Response network) throws IOException {
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpEngine.java30 import com.squareup.okhttp.Response;
120 private final Response priorResponse;
159 private Response cacheResponse;
166 private Response userResponse;
190 RouteSelector routeSelector, RetryableSink requestBodyOut, Response priorResponse) { in HttpEngine()
228 Response cacheCandidate = responseCache != null in sendRequest()
297 this.userResponse = new Response.Builder() in sendRequest()
311 private static Response stripBody(Response response) { in stripBody()
402 public Response getResponse() { in getResponse()
636 private Response unzip(final Response response) throws IOException { in unzip()
[all …]
DCacheStrategy.java6 import com.squareup.okhttp.Response;
38 public final Response cacheResponse;
40 private CacheStrategy(Request networkRequest, Response cacheResponse) { in CacheStrategy()
49 public static boolean isCacheable(Response response, Request request) { in isCacheable()
92 final Response cacheResponse;
126 public Factory(long nowMillis, Request request, Response cacheResponse) { in Factory()
215 Response.Builder builder = cacheResponse.newBuilder(); in getCandidate()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DAuthenticate.java22 import com.squareup.okhttp.Response;
31 @Override public Request authenticate(Proxy proxy, Response response) { in run()
40 @Override public Request authenticateProxy(Proxy proxy, Response response) { in run()
49 Response response = client.newCall(request).execute(); in run()
DLoggingInterceptors.java21 import com.squareup.okhttp.Response;
31 @Override public Response intercept(Chain chain) throws IOException { in LoggingInterceptors()
36 Response response = chain.proceed(request); in LoggingInterceptors()
51 Response response = client.newCall(request).execute(); in run()
DRewriteResponseCacheControl.java22 import com.squareup.okhttp.Response;
29 @Override public Response intercept(Chain chain) throws IOException {
30 Response originalResponse = chain.proceed(chain.request());
65 Response response = client.newCall(request).execute(); in run()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DJavaApiConverterTest.java24 import com.squareup.okhttp.Response;
119 Response response = JavaApiConverter.createOkResponseForCacheGet(request, cacheResponse); in createOkResponseForCacheGet()
199 Response response = JavaApiConverter.createOkResponseForCacheGet(request, cacheResponse); in createOkResponseForCacheGet_secure()
267 Response okResponse = createArbitraryOkResponse(); in createJavaUrlConnection_requestChangesForbidden()
300 Response okResponse = createArbitraryOkResponse(); in createJavaUrlConnection_connectionChangesForbidden()
316 Response okResponse = createArbitraryOkResponse(); in createJavaUrlConnection_responseChangesForbidden()
350 Response okResponse = new Response.Builder() in createJavaUrlConnection_responseHeadersOk()
437 Response okResponse = createArbitraryOkResponse(okRequest); in createJavaUrlConnection_accessibleRequestInfo_GET()
450 Response okResponse = createArbitraryOkResponse(okRequest); in createJavaUrlConnection_accessibleRequestInfo_POST()
466 Response okResponse = createArbitraryOkResponse(okRequest).newBuilder() in createJavaUrlConnection_https_extraHttpsMethods()
[all …]

12345678910