Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Oliver (0.23 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

        assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
        assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip, x-gzip, deflate")
        assertThat(recorded.headers["Connection"]).isEqualTo("keep-alive")
        assertThat(recorded.headers["User-Agent"]!!).startsWith("Apache-HttpClient/")
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

         * How many concurrent calls should be possible to make at any time.
         * The pool will routinely try to pre-emptively open connections to satisfy this minimum.
         * Connections will still be closed if they idle beyond the keep-alive but will be replaced.
         */
        @JvmField val minimumConcurrentCalls: Int = 0,
        /** How long to wait to retry pre-emptive connection attempts that fail. */
        @JvmField val backoffDelayMillis: Long = 60 * 1000,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertThat(connect.headers["User-Agent"]).isEqualTo(USER_AGENT)
        assertThat(connect.headers["Host"]).isEqualTo("android.com:443")
        assertThat(connect.headers["Proxy-Connection"]).isEqualTo("Keep-Alive")
        val get = server.takeRequest()
        assertThat(get.headers["Private"]).isEqualTo("Secret")
        assertThat(hostnameVerifier.calls).isEqualTo(listOf("verify android.com"))
      }
    
      @Test
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

         * 13.5.1.
         */
        private fun isEndToEnd(fieldName: String): Boolean {
          return !"Connection".equals(fieldName, ignoreCase = true) &&
            !"Keep-Alive".equals(fieldName, ignoreCase = true) &&
            !"Proxy-Authenticate".equals(fieldName, ignoreCase = true) &&
            !"Proxy-Authorization".equals(fieldName, ignoreCase = true) &&
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_3x.md

        Applications should avoid creating many connection pools as doing so
        prevents connection reuse. Each connection pool holds its own set of
        connections alive so applications that have many pools also risk exhausting
        memory!
    
        The best practice in OkHttp 3 is to create a single OkHttpClient instance
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

              val doReadTimeout = doReadTimeout()
              if (doReadTimeout) {
                readTimeout.enter()
              }
              try {
                if (errorCode != null && !finished) {
                  // Prepare to deliver an error.
                  errorExceptionToDeliver = errorException ?: StreamResetException(errorCode!!)
                }
    
                if (closed) {
                  throw IOException("stream closed")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  7. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    // Submitted by Rishabh Nambiar & Michael Brown <******@****.***>
    discourse.group
    discourse.team
    
    // Clever Cloud : https://www.clever-cloud.com/
    // Submitted by Quentin Adam <noc@clever-cloud.com>
    cleverapps.io
    
    // Clerk : https://www.clerk.dev
    // Submitted by Colin Sidoti <******@****.***>
    clerk.app
    clerkstage.app
    *.lcl.dev
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 240.3K bytes
    - Viewed (3)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        canceled = true
        stream?.closeLater(ErrorCode.CANCEL)
      }
    
      companion object {
        private const val CONNECTION = "connection"
        private const val HOST = "host"
        private const val KEEP_ALIVE = "keep-alive"
        private const val PROXY_CONNECTION = "proxy-connection"
        private const val TRANSFER_ENCODING = "transfer-encoding"
        private const val TE = "te"
        private const val ENCODING = "encoding"
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

        if (userRequest.header("Host") == null) {
          requestBuilder.header("Host", userRequest.url.toHostHeader())
        }
    
        if (userRequest.header("Connection") == null) {
          requestBuilder.header("Connection", "Keep-Alive")
        }
    
        // If we add an "Accept-Encoding: gzip" header field we're responsible for also decompressing
        // the transfer stream.
        var transparentGzip = false
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (2)
  10. okhttp/src/main/kotlin/okhttp3/Connection.kt

     * number of streams, dynamically configured with `SETTINGS_MAX_CONCURRENT_STREAMS`. A connection
     * currently carrying zero streams is an idle stream. We keep it alive because reusing an existing
     * connection is typically faster than establishing a new one.
     *
     * When a single logical call requires multiple streams due to redirects or authorization
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.3K bytes
    - Viewed (0)
Back to top