Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Chan (0.19 sec)

  1. docs/changelogs/changelog_4x.md

    
    ## Version 4.6.0
    
    _2020-04-28_
    
     *  Fix: Follow HTTP 307 and 308 redirects on methods other than GET and POST. We're reluctant to
        change OkHttp's behavior in handling common HTTP status codes, but this fix is overdue! The new
        behavior is now consistent with [RFC 7231][rfc_7231_647], which is newer than OkHttp itself.
        If you want this update with the old behavior use [this interceptor][legacy_interceptor].
    
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      override fun noNewExchanges() {
        this.withLock {
          noNewExchanges = true
        }
        connectionListener.noNewExchanges(this)
      }
    
      /** Prevent this connection from being used for hosts other than the one in [route]. */
      internal fun noCoalescedConnections() {
        this.withLock {
          noCoalescedConnections = true
        }
      }
    
      internal fun incrementSuccessCount() {
        this.withLock {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

            ******@****.***ck {
              finished = this.finished
              flowControlError = remainingByteCount + readBuffer.size > maxByteCount
            }
    
            // If the peer sends more data than we can handle, discard it and close the connection.
            if (flowControlError) {
              source.skip(remainingByteCount)
              closeLater(ErrorCode.FLOW_CONTROL_ERROR)
              return
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

        /** Age of the cached response. */
        private var ageSeconds = -1
    
        /**
         * Returns true if computeFreshnessLifetime used a heuristic. If we used a heuristic to serve a
         * cached response older than 24 hours, we are required to attach a warning.
         */
        private fun isFreshnessLifetimeHeuristic(): Boolean {
          return cacheResponse!!.cacheControl.maxAgeSeconds == -1 && expires == null
        }
    
        init {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          .scheme(if (sslSocketFactory != null) "https" else "http")
          .host(hostName)
          .port(port)
          .build()
          .resolve(path)!!
      }
    
      /**
       * Serve requests with HTTPS rather than otherwise.
       */
      fun useHttps(sslSocketFactory: SSLSocketFactory) {
        this.sslSocketFactory = sslSocketFactory
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/main/resources/okhttp3/internal/idna/IdnaMappingTable.txt

    105A..1099    ; valid                                  # 5.1  MYANMAR LETTER MON NGA..MYANMAR SHAN DIGIT NINE
    109A..109D    ; valid                                  # 5.2  MYANMAR SIGN KHAMTI TONE-1..MYANMAR VOWEL SIGN AITON AI
    109E..109F    ; valid                  ;      ; NV8    # 5.1  MYANMAR SYMBOL SHAN ONE..MYANMAR SYMBOL SHAN EXCLAMATION
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Feb 10 11:25:47 GMT 2024
    - 854.1K bytes
    - Viewed (2)
  7. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        val framesThatFillWindow =
          roundUp(Settings.DEFAULT_INITIAL_WINDOW_SIZE, peer.maxOutboundDataLength())
    
        // Write the mocking script. This accepts more data frames than necessary!
        peer.sendFrame().settings(Settings())
        peer.acceptFrame() // SETTINGS ACK
        peer.acceptFrame() // SYN_STREAM on stream 1
        for (i in 0 until framesThatFillWindow) {
    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)
  8. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        // Extract the regular sequence of routes from selector.
        val selection1 = routeSelector.next()
        val regularRoutes = selection1.routes
    
        // Check that we do indeed have more than one route.
        assertThat(regularRoutes.size).isEqualTo(numberOfAddresses)
        // Add first regular route as failed.
        routeDatabase.failed(regularRoutes[0])
        // Reset selector
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cache.kt

     *   // The resource was cached! Show it.
     * } else {
     *   // The resource was not cached.
     * }
     * ```
     *
     * This technique works even better in situations where a stale response is better than no response.
     * To permit stale cached responses, use the `max-stale` directive with the maximum staleness in
     * seconds:
     *
     * ```java
     * Request request = new Request.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

       * expect a newly-started thread to call [Runnable.run]. We shouldn't request new threads until
       * the already-requested ones are in service, otherwise we might create more threads than we need.
       *
       * We use [executeCallCount] and [runCallCount] to defend against starting more threads than we
       * need. Both fields are guarded by [lock].
       */
      private var executeCallCount = 0
      private var runCallCount = 0
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
Back to top