Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for its (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     * sequences, accessible as streams or files. Each value must be between `0` and `Int.MAX_VALUE`
     * bytes in length.
     *
     * The cache stores its data in a directory on the filesystem. This directory must be exclusive to
     * the cache; the cache may delete or overwrite files from its directory. It is an error for
     * multiple processes to use the same cache directory at the same time.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.tls.internal.der
    
    /**
     * The first two bytes of each value is a header that includes its tag (field ID) and length.
     */
    internal data class DerHeader(
      /**
       * Namespace of the tag.
       *
       * This value is encoded in bits 7 and 8 of the first byte of each value.
       *
       * ```
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

            override fun runOnce(): Long = openConnections(this@scheduleOpener)
          },
        )
      }
    
      /**
       * Holding the lock of the connection being added or removed when mutating this, and check its
       * [RealConnection.noNewExchanges] property. This defends against races where a connection is
       * simultaneously adopted and removed.
       */
      private val connections = ConcurrentLinkedQueue<RealConnection>()
    
      init {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     * sorted by this 14-bit prefix.
     *
     * We define these values:
     *
     *  * **b0b1s7**: (b0 << 14) + (b1 << 7)
     *  * **b2b3s2**: (b2 << 9) + (b3 << 2)
     *
     * b0b1s7 is the section prefix. If a section is omitted, that means its ranges data exactly matches
     * that of the preceding section.
     *
     * b2b3s2 is the offset into the ranges data. It is shifted by 2 because ranges are 4-byte aligned.
     *
     * Mappings Data (4,719 bytes)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteDatabase.kt

     */
    package okhttp3.internal.connection
    
    import okhttp3.Route
    
    /**
     * A denylist of failed routes to avoid when creating a new connection to a target address. This is
     * used so that OkHttp can learn from its mistakes: if there was a failure attempting to connect to
     * a specific IP address or proxy server, that failure is remembered and alternate routes are
     * preferred.
     */
    class RouteDatabase {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        }
    
        limit = newLimit
        constructed = header.constructed
        if (name != null) path += name
        try {
          val result = block(header)
    
          // The object processed bytes beyond its range.
          if (newLimit != -1L && byteCount > newLimit) {
            throw ProtocolException("unexpected byte count at $this")
          }
    
          return result
        } finally {
          peekedHeader = null
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

              }
            }
          }
    
          assertThat(call.canceled).isTrue()
          assertThat(call.responseClosed).isTrue()
        }
      }
    
      /** A call that keeps track of whether its response body is closed. */
      private class ClosableCall : FailingCall() {
        private val response =
          Response.Builder()
            .request(Request("https://example.com/".toHttpUrl()))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

        assertThat("hello-world".map()).isEqualTo("hello-world")
        assertThat("HELLO".map()).isEqualTo("hello")
        assertThat("Hello".map()).isEqualTo("hello")
    
        // These compound characters map their its components.
        assertThat("¼".map()).isEqualTo("1⁄4")
        assertThat("™".map()).isEqualTo("tm")
      }
    
      /** Confirm the compact table satisfies is documented invariants. */
      @Test fun validateCompactTableInvariants() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  9. docs/features/https.md

    You can build your own connection spec with a custom set of TLS versions and cipher suites. For example, this configuration is limited to three highly-regarded cipher suites. Its drawback is that it requires Android 5.0+ and a similarly current webserver.
    
    ```java
    ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
        .tlsVersions(TlsVersion.TLS_1_2)
        .cipherSuites(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

        }
    
        /**
         * Returns true if the request contains conditions that save the server from sending a response
         * that the client has locally. When a request is enqueued with its own conditions, the built-in
         * response cache won't be used.
         */
        private fun hasConditions(request: Request): Boolean =
          request.header("If-Modified-Since") != null || request.header("If-None-Match") != null
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top