Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for Reset (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          if (pos == limit) {
            // Empty path: keep the base path as-is.
            return
          }
          val c = input[pos]
          if (c == '/' || c == '\\') {
            // Absolute path: reset to the default "/".
            encodedPathSegments.clear()
            encodedPathSegments.add("")
            pos++
          } else {
            // Relative path: clear everything after the last '/'.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

          }
    
          HttpURLConnection.HTTP_UNAUTHORIZED -> {
            builder.addHeader("WWW-Authenticate: Basic realm=\"protected area\"")
          }
    
          HttpURLConnection.HTTP_NO_CONTENT, HttpURLConnection.HTTP_RESET -> {
            builder.body("") // We forbid bodies for 204 and 205.
          }
        }
        server.enqueue(builder.build())
        if (responseCode == HttpURLConnection.HTTP_CLIENT_TIMEOUT) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        sink1.writeUtf8("abc")
        assertFailsWith<IOException> {
          sink2.writeUtf8("abc")
          sink2.flush()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("stream was reset: REFUSED_STREAM")
        }
        sink1.writeUtf8("def")
        sink1.close()
        assertFailsWith<ConnectionShutdownException> {
          connection.newStream(headerEntries("c", "cola"), true)
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 75.4K bytes
    - Viewed (0)
Back to top