Home
last modified time | relevance | path

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

/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java106 .setResponseCode(101) in missingConnectionHeader()
116 .setResponseCode(101) in wrongConnectionHeader()
127 .setResponseCode(101) in missingUpgradeHeader()
137 .setResponseCode(101) in wrongUpgradeHeader()
148 .setResponseCode(101) in missingMagicHeader()
158 .setResponseCode(101) in wrongMagicHeader()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheTest.java161 .setResponseCode(responseCode) in assertCached()
286 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in responseCachingAndRedirects()
312 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in redirectToCachedResult()
345 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in secureResponseCachingAndRedirects()
391 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in secureResponseCachingAndProtocolRedirects()
435 .setResponseCode(responseCode) in temporaryRedirectCachedWithCachingHeader()
453 .setResponseCode(responseCode) in temporaryRedirectNotCachedWithoutCachingHeader()
468 .setResponseCode(301) in cachedRedirect()
814 .setResponseCode(500)); in postInvalidatesCacheWithUncacheableResponse()
901 .setResponseCode(HttpURLConnection.HTTP_PARTIAL) in partialRangeResponsesDoNotCorruptCache()
[all …]
DCallTest.java164 server.enqueue(new MockResponse().setResponseCode(500)); in getReturns500()
372 server.enqueue(new MockResponse().setResponseCode(401)); in postBodyRetransmittedAfterAuthorizationFail()
399 server.enqueue(new MockResponse().setResponseCode(401)); in attemptAuthorization20Times()
414 server.enqueue(new MockResponse().setResponseCode(401)); in doesNotAttemptAuthorization21Times()
1013 .setResponseCode(301) in setFollowSslRedirectsFalse()
1170 .setResponseCode(HttpURLConnection.HTTP_NOT_MODIFIED)); in conditionalCacheHit()
1228 .setResponseCode(HttpURLConnection.HTTP_NOT_MODIFIED)); in conditionalCacheHit_Async()
1334 .setResponseCode(301) in redirect()
1339 .setResponseCode(302) in redirect()
1362 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) in postRedirectsToGet()
[all …]
DURLConnectionTest.java328 server.enqueue(new MockResponse().setResponseCode(404).setBody("A")); in getErrorStreamOnUnsuccessfulRequest()
941 server.enqueue(new MockResponse().setResponseCode(407) in proxyAuthenticateOnConnect()
1099 .setResponseCode(401) // UNAUTHORIZED in unauthorizedResponseHandling()
1384 MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(401)
1443 server.enqueue(new MockResponse().setResponseCode(401));
1523 .setResponseCode(responseCode)
1700 MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(401)
1734 MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(401)
1763 MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(401)
1795 server.enqueue(new MockResponse().setResponseCode(401)
[all …]
DConnectionReuseTest.java117 .setResponseCode(301) in connectionsReusedWithRedirectEvenIfPoolIsSizeZero()
134 .setResponseCode(301) in connectionsNotReusedWithRedirectIfDiscardingResponseIsSlow()
DInterceptorTest.java79 server.enqueue(new MockResponse().setResponseCode(500)); in networkInterceptorsCannotShortCircuitResponses()
133 server.enqueue(new MockResponse().setResponseCode(500)); in networkInterceptorsCannotChangeServerAddress()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java170 .setResponseCode(responseCode) in assertCached()
285 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in responseCachingAndRedirects()
305 server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in redirectToCachedResult()
330 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in secureResponseCachingAndRedirects()
371 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in secureResponseCachingAndProtocolRedirects()
686 server.enqueue(new MockResponse().setBody("B").setResponseCode(500)); in postInvalidatesCacheWithUncacheableResponse()
763 .setResponseCode(HttpURLConnection.HTTP_PARTIAL) in partialRangeResponsesDoNotCorruptCache()
805 server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_MODIFIED)); in assertNonIdentityEncodingCached()
806 server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_MODIFIED)); in assertNonIdentityEncodingCached()
823 .setResponseCode(HttpURLConnection.HTTP_NOT_MODIFIED) in notModifiedSpecifiesEncoding()
[all …]
DOkUrlFactoryTest.java55 server.enqueue(new MockResponse().setResponseCode(407)); in originServerSends407()
74 server.enqueue(new MockResponse().setResponseCode(404)); in networkFailureResponseSourceHeader()
86 server.enqueue(new MockResponse().setResponseCode(304)); in conditionalCacheHitResponseSourceHeaders()
142 .setResponseCode(302) in setInstanceFollowRedirectsFalse()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DQueueDispatcher.java37 .setResponseCode(HttpURLConnection.HTTP_NOT_FOUND); in dispatch()
61 ? new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_FOUND) in setFailFast()
DMockResponse.java77 public MockResponse setResponseCode(int code) { in setResponseCode() method in MockResponse
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/
DQueueDispatcher.java37 return new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_FOUND); in dispatch()
61 ? new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_FOUND) in setFailFast()
DMockResponse.java70 public MockResponse setResponseCode(int code) { in setResponseCode() method in MockResponse
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java187 .setResponseCode(responseCode) in assertCached()
293 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in responseCachingAndRedirects()
314 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in redirectToCachedResult()
341 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in secureResponseCachingAndRedirects()
385 .setResponseCode(HttpURLConnection.HTTP_MOVED_PERM) in secureResponseCachingAndProtocolRedirects()
426 .setResponseCode(responseCode) in temporaryRedirectCachedWithCachingHeader()
444 .setResponseCode(responseCode) in temporaryRedirectNotCachedWithoutCachingHeader()
781 .setResponseCode(500)); in postInvalidatesCacheWithUncacheableResponse()
864 .setResponseCode(HttpURLConnection.HTTP_PARTIAL) in partialRangeResponsesDoNotCorruptCache()
927 .setResponseCode(HttpURLConnection.HTTP_NOT_MODIFIED)); in assertNonIdentityEncodingCached()
[all …]
/external/okhttp/mockwebserver/
DREADME.md128 return new MockResponse().setResponseCode(200);
130 return new MockResponse().setResponseCode(200).setBody("version=9");
132 …return new MockResponse().setResponseCode(200).setBody("{\\\"info\\\":{\\\"name\":\"Lucas Albuquer…
134 return new MockResponse().setResponseCode(404);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java216 server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_UNAUTHORIZED) in authenticate()
234 server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) in redirect()
344 server.enqueue(new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_MODIFIED)); in conditionalCache()
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java57 server.enqueue(new MockResponse().setResponseCode(302).addHeader("Location", "/foo")); in redirect()
67 server.enqueue(new MockResponse().setResponseCode(422)); in sessionExpired()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java126 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) in testRedirect()
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java100 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) in redirect()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DCookiesTest.java224 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) in testRedirectsDoNotIncludeTooManyCookies()