/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/ |
D | WebSocketCallTest.java | 106 .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/ |
D | CacheTest.java | 161 .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 …]
|
D | CallTest.java | 164 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 …]
|
D | URLConnectionTest.java | 328 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 …]
|
D | ConnectionReuseTest.java | 117 .setResponseCode(301) in connectionsReusedWithRedirectEvenIfPoolIsSizeZero() 134 .setResponseCode(301) in connectionsNotReusedWithRedirectIfDiscardingResponseIsSlow()
|
D | InterceptorTest.java | 79 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/ |
D | UrlConnectionCacheTest.java | 170 .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 …]
|
D | OkUrlFactoryTest.java | 55 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/ |
D | QueueDispatcher.java | 37 .setResponseCode(HttpURLConnection.HTTP_NOT_FOUND); in dispatch() 61 ? new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_FOUND) in setFailFast()
|
D | MockResponse.java | 77 public MockResponse setResponseCode(int code) { in setResponseCode() method in MockResponse
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
D | QueueDispatcher.java | 37 return new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_FOUND); in dispatch() 61 ? new MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_FOUND) in setFailFast()
|
D | MockResponse.java | 70 public MockResponse setResponseCode(int code) { in setResponseCode() method in MockResponse
|
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ |
D | ResponseCacheTest.java | 187 .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/ |
D | README.md | 128 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/ |
D | HttpOverSpdyTest.java | 216 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/ |
D | OkApacheClientTest.java | 57 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/ |
D | MockWebServerTest.java | 126 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) in testRedirect()
|
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/ |
D | MockWebServerTest.java | 100 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) in redirect()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | CookiesTest.java | 224 .setResponseCode(HttpURLConnection.HTTP_MOVED_TEMP) in testRedirectsDoNotIncludeTooManyCookies()
|