Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 83 for Enable (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

          val value = source.readInt()
    
          when (id) {
            // SETTINGS_HEADER_TABLE_SIZE
            1 -> {
            }
    
            // SETTINGS_ENABLE_PUSH
            2 -> {
              if (value != 0 && value != 1) {
                throw IOException("PROTOCOL_ERROR SETTINGS_ENABLE_PUSH != 0 or 1")
              }
            }
    
            // SETTINGS_MAX_CONCURRENT_STREAMS
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

          else -> println(message)
        }
      }
    
      fun enableJsseDebugLogging(debugHandler: (JsseDebugMessage) -> Unit = this::quietDebug): Closeable {
        System.setProperty("javax.net.debug", "")
        return OkHttpDebugLogging.enable(
          "javax.net.ssl",
          object : Handler() {
            override fun publish(record: LogRecord) {
              val param = record.parameters?.firstOrNull() as? String
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_3x.md

        mutual TLS where these roles are reversed.
    
        These classes make it possible to enable HTTPS in MockWebServer in [just a few lines of
        code][https_server_sample].
    
     *  **OkHttp now supports prior knowledge cleartext HTTP/2.** Enable this by setting
        `Protocol.H2_PRIOR_KNOWLEDGE` as the lone protocol on an `OkHttpClient.Builder`. This mode
    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/ConnectionSpecTest.kt

            .allEnabledTlsVersions()
            .allEnabledCipherSuites()
            .build()
        assertThat(connectionSpec.toString()).isEqualTo(
          "ConnectionSpec(cipherSuites=[all enabled], tlsVersions=[all enabled], " +
            "supportsTlsExtensions=true)",
        )
      }
    
      @Test
      fun simpleToString() {
        val connectionSpec =
          ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  5. okhttp/build.gradle.kts

           the generated index.xml, are outputs, not inputs. We can be sure of
           this because they are deleted in the @BeforeEach method of the
           OsgiTest test class.
    
           - To enable the benefit of incremental builds, we can ask Gradle
           to ignore these two files when considering whether the classpath
           has changed. That is the purpose of this normalization block.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  6. docs/features/interceptors.md

    If you're in a tricky situation and prepared to deal with the consequences, rewriting response headers is a powerful way to work around problems. For example, you can fix a server's misconfigured `Cache-Control` response header to enable better response caching:
    
    ```java
    /** Dangerous interceptor that rewrites the server's cache-control header. */
    private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() {
    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)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

              .apply {
                isAccessible = true
              }
              .get(this) as? SecretKey
    
        val randomRegex = "\"random\"\\s+:\\s+\"([^\"]+)\"".toRegex()
    
        fun register() {
          // Enable JUL logging for SSL events, must be activated early or via -D option.
          System.setProperty("javax.net.debug", "")
          logger =
            Logger.getLogger("javax.net.ssl")
              .apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

        )
        assertThat(webSocket.close(1000, null)).isFalse()
      }
    
      /**
       * There's no read timeout when reading the first byte of a new frame. But as soon as we start
       * reading a frame we enable the read timeout. In this test we have the server returning the first
       * byte of a frame but no more frames.
       */
      @Test
      fun readTimeoutAppliesWithinFrames() {
        webServer.dispatcher =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

        server.shutdown()
        executeSynchronously("/")
          .assertFailure(IOException::class.java)
      }
    
      @Test
      fun requestBodySurvivesRetries() {
        server.enqueue(MockResponse())
    
        // Enable a misconfigured proxy selector to guarantee that the request is retried.
        client =
          client.newBuilder()
            .proxySelector(
              FakeProxySelector()
                .addProxy(server2.toProxyAddress())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  10. CHANGELOG.md

    **not stable** and will likely change before the final 5.0.0 release.
    
    If you have code that subclasses `okhttp3.mockwebserver.QueueDispatcher`, this update is not source
    or binary compatible. Migrating to the new `mockwebserver3` package will fix this problem.
    
     *  New: DNS over HTTPS is now a stable feature of OkHttp. We introduced this as an experimental
    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)
Back to top