Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 56 for contro (0.25 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      internal const val OPCODE_CONTINUATION = 0x0
      internal const val OPCODE_TEXT = 0x1
      internal const val OPCODE_BINARY = 0x2
    
      internal const val OPCODE_CONTROL_CLOSE = 0x8
      internal const val OPCODE_CONTROL_PING = 0x9
      internal const val OPCODE_CONTROL_PONG = 0xa
    
      /**
       * Maximum length of frame payload. Larger payloads, if supported by the frame type, can use the
       * special values [PAYLOAD_SHORT] or [PAYLOAD_LONG].
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/idn/StringprepTablesReaderTest.kt

        buffer.writeUtf8(
          """
          |  0221
          |  0234-024F
          |  0000-001F; [CONTROL CHARACTERS]
          |  007F; DELETE
          |
          """.trimMargin(),
        )
    
        val rangeList = buffer.readCodePointSet()
        assertEquals(
          listOf(
            0x0221..0x0221,
            0x0234..0x024f,
            // [CONTROL CHARACTERS].
            0x0000..0x001f,
            // DELETE.
            0x007f..0x007f,
          ),
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  3. docs/features/interceptors.md

    ```java
    /** Dangerous interceptor that rewrites the server's cache-control header. */
    private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() {
      @Override public Response intercept(Interceptor.Chain chain) throws IOException {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/idn/StringprepReader.kt

          randalcatSet = randalcatSet,
          lcatSet = lcatSet,
        )
      }
    
      /**
       * Reads a set of range lines like the following:
       *
       * ```
       *  0221
       *  0234-024F
       *  0000-001F; [CONTROL CHARACTERS]
       *  007F; DELETE
       * ```
       */
      fun readCodePointSet(path: Path): RangeListCodePointSet {
        fileSystem.source(path).buffer().use { source ->
          return source.readCodePointSet()
        }
      }
    
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      /** Settings we communicate to the peer. */
      val okHttpSettings =
        Settings().apply {
          // Flow control was designed more for servers, or proxies than edge clients. If we are a client,
          // set the flow control window to 16MiB.  This avoids thrashing window updates every 64KiB, yet
          // small enough to avoid blowing up the heap.
          if (builder.client) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  6. CHANGELOG.md

        security and performance.
    
     *  New: `ConnectionListener` publishes events for connects, disconnects, and use of pooled
        connections.
    
     *  Fix: Immediately update the connection's flow control window instead of waiting for the
        receiving stream to process it.
    
        This change may increase OkHttp's memory use for applications that make many concurrent HTTP
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_2x.md

        including a bug where the cache could be corrupted upon certain access
        patterns. We also fixed a bug where the cache was being cleared due to a
        corrupted journal. We've added APIs to configure a request's `Cache-Control`
        headers, and to manually clear the cache.
    
     *  **Request cancellation fixes.** This update fixes a bug where synchronous
        requests couldn't be canceled by tag. This update avoids crashing when
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/EventListenerTest.kt

      }
    
      @Test
      fun cacheHit() {
        enableCache()
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .addHeader("cache-control: public, max-age=300")
            .build(),
        )
        var call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .build(),
          )
    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)
  9. 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)
  10. 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)
Back to top