Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for contrib (0.69 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     * All comments are ignored.
     *
     * Regular lines contain fields separated by semicolons.
     *
     * The first element on each line is a single hex code point (like 0041) or a hex code point range
     * (like 0030..0039).
     *
     * The second element on each line is a mapping type, like `valid` or `mapped`.
     *
     * For lines that contain a mapping target, the next thing is a sequence of hex code points (like
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

     *  Fix: Don't lose HTTP/2 flow control bytes when incoming data races with a stream close. If this
        happened enough then eventually the connection would stall.
    
     *  Fix: Acknowledge and apply inbound HTTP/2 settings atomically. Previously we had a race where we
        could use new flow control capacity before acknowledging it, causing strict HTTP/2 servers to
        fail the call.
    
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. mockwebserver/README.md

    add headers with a fluent builder API.
    
    ```java
    MockResponse response = new MockResponse()
        .addHeader("Content-Type", "application/json; charset=utf-8")
        .addHeader("Cache-Control", "no-cache")
        .setBody("{}");
    ```
    
    MockResponse can be used to simulate a slow network. This is useful for
    testing timeouts and interactive testing.
    
    ```java
    response.throttleBody(1024, 1, TimeUnit.SECONDS);
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        return exchange?.hasFailure == true &&
          exchangeFinder!!.routePlanner.hasNext(exchange?.connection)
      }
    
      /**
       * Returns a string that describes this call. Doesn't include a full URL as that might contain
       * sensitive information.
       */
      private fun toLoggableString(): String {
        return (
          (if (isCanceled()) "canceled " else "") +
            (if (forWebSocket) "web socket" else "call") +
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  5. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

        val url = "http://host/#\u0080".toHttpUrl()
        assertThat(url.toString()).isEqualTo("http://host/#\u0080")
        assertThat(url.fragment).isEqualTo("\u0080")
        assertThat(url.encodedFragment).isEqualTo("\u0080")
        // Control characters may be stripped!
        assertThat(url.toUri()).isEqualTo(URI("http://host/#"))
      }
    
      @Test
      fun toUriWithControlCharacters() {
        // Percent-encoded in the path.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            .addHeader("icy-name:A2RRock")
            .addHeader("icy-pub:1")
            .addHeader("icy-url:http://www.A2Rradio.com")
            .addHeader("Server: Icecast 2.3.3-kh8")
            .addHeader("Cache-Control: no-cache")
            .addHeader("Pragma: no-cache")
            .addHeader("Expires: Mon, 26 Jul 1997 05:00:00 GMT")
            .addHeader("icy-metaint:16000")
            .body("mp3 data")
            .build(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_CONTINUATION
    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_CONTROL_CLOSE
    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_CONTROL_PING
    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_CONTROL_PONG
    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_FLAG_CONTROL
    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_TEXT
    import okhttp3.internal.ws.WebSocketProtocol.PAYLOAD_BYTE_MAX
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

          encodings[ 0x10] = encoding // Data Link Escape
          encodings[ 0x11] = encoding // Device Control 1 (oft. XON)
          encodings[ 0x12] = encoding // Device Control 2
          encodings[ 0x13] = encoding // Device Control 3 (oft. XOFF)
          encodings[ 0x14] = encoding // Device Control 4
          encodings[ 0x15] = encoding // Negative Acknowledgment
          encodings[ 0x16] = encoding // Synchronous idle
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CacheTest.kt

            .addHeader("Cache-Control: max-age=60")
            .build(),
        )
      }
    
      @Test
      fun maxAgePreferredOverLowerSharedMaxAge() {
        assertFullyCached(
          MockResponse.Builder()
            .addHeader("Date: " + formatDate(-2, TimeUnit.MINUTES))
            .addHeader("Cache-Control: s-maxage=60")
            .addHeader("Cache-Control: max-age=180")
            .build(),
        )
      }
    
    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)
  10. samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java

    public final class RewriteResponseCacheControl {
      /** Dangerous interceptor that rewrites the server's cache-control header. */
      private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = chain -> {
        Response originalResponse = chain.proceed(chain.request());
        return originalResponse.newBuilder()
            .header("Cache-Control", "max-age=60")
            .build();
      };
    
      private final OkHttpClient client;
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.6K bytes
    - Viewed (0)
Back to top