Home
last modified time | relevance | path

Searched refs:responseCode (Results 1 – 18 of 18) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DStatusLine.java13 private final int responseCode; field in StatusLine
45 int responseCode; in StatusLine() local
47 responseCode = Integer.parseInt(statusLine.substring(codeStart, codeStart + 3)); in StatusLine()
63 this.responseCode = responseCode; in StatusLine()
82 return responseCode; in code()
DHttpURLConnectionImpl.java342 int responseCode = httpEngine.getResponse().code(); in getResponse() local
343 if (responseCode == HTTP_MULT_CHOICE in getResponse()
344 || responseCode == HTTP_MOVED_PERM in getResponse()
345 || responseCode == HTTP_MOVED_TEMP in getResponse()
346 || responseCode == HTTP_SEE_OTHER) { in getResponse()
353 throw new HttpRetryException("Cannot retry streamed HTTP body", responseCode); in getResponse()
412 final int responseCode = getResponseCode(); in processResponseHeaders() local
413 switch (responseCode) { in processResponseHeaders()
437 if (responseCode == HTTP_TEMP_REDIRECT && !method.equals("GET") && !method.equals("HEAD")) { in processResponseHeaders()
DCacheStrategy.java71 int responseCode = response.code(); in isCacheable() local
72 if (responseCode != HttpURLConnection.HTTP_OK in isCacheable()
73 && responseCode != HttpURLConnection.HTTP_NOT_AUTHORITATIVE in isCacheable()
74 && responseCode != HttpURLConnection.HTTP_MULT_CHOICE in isCacheable()
75 && responseCode != HttpURLConnection.HTTP_MOVED_PERM in isCacheable()
76 && responseCode != HttpURLConnection.HTTP_GONE) { in isCacheable()
DHttpEngine.java494 int responseCode = userResponse.code(); in hasResponseBody() local
495 if ((responseCode < HTTP_CONTINUE || responseCode >= 200) in hasResponseBody()
496 && responseCode != HTTP_NO_CONTENT in hasResponseBody()
497 && responseCode != HTTP_NOT_MODIFIED) { in hasResponseBody()
/external/okhttp/samples/crawler/src/main/java/com/squareup/okhttp/sample/
DCrawler.java87 int responseCode = connection.getResponseCode(); in fetch() local
89 System.out.printf("%03d: %s %s%n", responseCode, url, responseSource); in fetch()
91 if (responseCode >= 400) { in fetch()
97 if (responseCode != 200 || contentType == null) { in fetch()
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java953 final ServerSocket serverSocket, final int responseCode) in doInteraction() argument
955 return doInteraction(clientConnection, serverSocket, responseCode, in doInteraction()
977 final ServerSocket serverSocket, final int responseCode) in doPersistentInteraction() argument
979 return doInteraction(clientConnection, serverSocket, responseCode, in doPersistentInteraction()
991 final ServerSocket serverSocket, final int responseCode, in doInteraction() argument
1000 ServerWork server = new ServerWork(serverSocket, responseCode, in doInteraction()
1010 if (responseCode != OK_CODE) { // not OK response expected in doInteraction()
1030 if (responseCode != OK_CODE) { // not OK response expected in doInteraction()
1165 private int responseCode; field in HttpsURLConnectionTest.ServerWork
1183 public ServerWork(ServerSocket serverSocket, int responseCode, in ServerWork() argument
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
DHttpRetryExceptionTest.java42 assertEquals("responseCode", ref.responseCode(), tst.responseCode());
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DExternalSpdyExample.java44 int responseCode = connection.getResponseCode(); in main() local
45 System.out.println(responseCode); in main()
DExternalHttp2Example.java44 int responseCode = connection.getResponseCode(); in main() local
45 System.out.println(responseCode); in main()
DHttpResponseCacheTest.java200 private void assertCached(boolean shouldPut, int responseCode) throws Exception { in assertCached() argument
205 .setResponseCode(responseCode) in assertCached()
208 if (responseCode == HttpURLConnection.HTTP_PROXY_AUTH) { in assertCached()
210 } else if (responseCode == HttpURLConnection.HTTP_UNAUTHORIZED) { in assertCached()
218 assertEquals(responseCode, conn.getResponseCode()); in assertCached()
225 assertNotNull(Integer.toString(responseCode), cached); in assertCached()
228 assertNull(Integer.toString(responseCode), cached); in assertCached()
DURLConnectionTest.java1466 int responseCode = proxy ? 407 : 401;
1469 MockResponse pleaseAuthenticate = new MockResponse().setResponseCode(responseCode)
1481 assertEquals(responseCode, connection.getResponseCode());
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DCustomDispatcherTest.java85 private Thread buildRequestThread(final String path, final AtomicInteger responseCode) { in buildRequestThread() argument
92responseCode.set(conn.getResponseCode()); // Force the connection to hit the "server". in buildRequestThread()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DCustomDispatcherTest.java86 private Thread buildRequestThread(final String path, final AtomicInteger responseCode) { in buildRequestThread() argument
93responseCode.set(conn.getResponseCode()); // Force the connection to hit the "server". in buildRequestThread()
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/
DOkApacheClient.java153 int responseCode = connection.getResponseCode(); in execute() local
155 BasicHttpResponse response = new BasicHttpResponse(HTTP_1_1, responseCode, message); in execute()
158 responseCode < HttpURLConnection.HTTP_BAD_REQUEST ? connection.getInputStream() in execute()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DJob.java179 int responseCode = response.code(); in processResponse() local
181 switch (responseCode) { in processResponse()
205 if (responseCode == HTTP_TEMP_REDIRECT && !method.equals("GET") && !method.equals("HEAD")) { in processResponse()
/external/chromium_org/remoting/ios/
Dhost_refresh.mm98 NSNumber* responseCode =
100 if (responseCode.intValue != 200) {
/external/chromium_org/media/base/android/java/src/org/chromium/media/
DMediaDrmBridge.java867 int responseCode = response.getStatusLine().getStatusCode(); in postRequest() local
868 if (responseCode == 200) { in postRequest()
871 Log.d(TAG, "Server returned HTTP error code " + responseCode); in postRequest()
/external/clang/test/CodeGenObjC/
Ddebug-info-block-line.m51 - (void)sendResponseCode:(TResponseCode)responseCode dataFollows:(BOOL)flag