Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for also (0.17 sec)

  1. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertThat(url.resolve("g#s/./x")).isEqualTo(parse("http://a/b/c/g#s/./x"))
        assertThat(url.resolve("g#s/../x")).isEqualTo(parse("http://a/b/c/g#s/../x"))
        // "http:g" also okay.
        assertThat(url.resolve("http:g")).isEqualTo(parse("http://a/b/c/g"))
      }
    
      @Test
      fun parseAuthoritySlashCountDoesntMatter() {
        assertThat(parse("http:host/path"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            .build()
    
        // Make a call expecting a timeout reading the response headers.
        val call1 = client.newCall(Request(server.url("/")))
        assertFailsWith<SocketTimeoutException> {
          call1.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("timeout")
        }
    
        // Confirm that a subsequent request on the same connection is not impacted.
        val call2 = client.newCall(Request(server.url("/")))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_3x.md

        supports more cipher suites than the JVM’s default provider and may also
        execute more efficiently.
    
        To use it, first register a [Conscrypt dependency][conscrypt_dependency] in
        your build system.
    
        OkHttp will use Conscrypt if you set the `okhttp.platform` system property
        to `conscrypt`.
    
        Alternatively, OkHttp will also use Conscrypt if you install it as your
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

        assertFailsWith<IllegalArgumentException> {
          key = "has_space "
          cache.edit(key)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("keys must match regex [a-z0-9_-]{1,120}: \"$key\"")
        }
        assertFailsWith<IllegalArgumentException> {
          key = "has_CR\r"
          cache.edit(key)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("keys must match regex [a-z0-9_-]{1,120}: \"$key\"")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * names to avoid confusing characters. This includes basic case folding: transforming shouting
     * `SQUARE.COM` into cool and casual `square.com`. It also handles more exotic characters. For
     * example, the Unicode trademark sign (™) could be confused for the letters "TM" in
     * `http://ho™ail.com`. To mitigate this, the single character (™) maps to the string (tm). There
    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)
  6. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     * if you are writing a application that needs to aggressively release unused resources you may do
     * so.
     *
     * Shutdown the dispatcher's executor service with [shutdown()][ExecutorService.shutdown]. This will
     * also cause future calls to the client to be rejected.
     *
     * ```java
     * client.dispatcher().executorService().shutdown();
     * ```
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/EventListenerTest.kt

            .build()
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .build(),
          )
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isIn("timeout", "Read timed out")
        }
        assertThat(listener.recordedEventTypes()).containsExactly(
          "CallStart",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

      }
    
      /**
       * When writing a set of headers fails due to an `IOException`, make sure the writer is left
       * in a consistent state so the next writer also gets an `IOException` also instead of
       * something worse (like an [IllegalStateException].
       *
       *
       * See https://github.com/square/okhttp/issues/1651
       */
      @Test fun socketExceptionWhileWritingHeaders() {
    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