Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for selects (5.94 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        private var fileOperator: FileOperator? = FileOperator(file!!.channel)
    
        /** The next byte to read. This is always less than or equal to [upstreamPos]. */
        private var sourcePos = 0L
    
        /**
         * Selects where to find the bytes for a read and read them. This is one of three sources.
         *
         * ## Upstream
         *
         * In this case the current thread is assigned as the upstream reader. We read bytes from
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. docs/features/connections.md

     2. It attempts to retrieve a connection with that address from the **connection pool**.
     3. If it doesn't find a connection in the pool, it selects a **route** to attempt. This usually means making a DNS request to get the server's IP addresses. It then selects a TLS version and proxy server if necessary.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Feb 21 03:33:59 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/OpenJSSEPlatform.kt

     *
     * Requires org.openjsse:openjsse >= 1.1.0 on the classpath.
     */
    class OpenJSSEPlatform private constructor() : Platform() {
      private val provider: Provider = org.openjsse.net.ssl.OpenJSSE()
    
      // Selects TLSv1.3 so we are specific about our intended version ranges (not just 1.3)
      // and because it's a common pattern for VMs to have differences between supported and
      // defaulted versions for TLS based on what is requested.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

    import okhttp3.Address
    import okhttp3.HttpUrl
    import okhttp3.Route
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.internal.immutableListOf
    import okhttp3.internal.toImmutableList
    
    /**
     * Selects routes to connect to an origin server. Each connection requires a choice of proxy server,
     * IP address, and TLS mode. Connections may also be recycled.
     */
    class RouteSelector(
      private val address: Address,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  5. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

     * A or AAAA records, and returns the addresses or exception.
     *
     * Two instances must be used to get all results for an address.
     *
     * @param network network to use, if not selects the default network.
     */
    @RequiresApi(Build.VERSION_CODES.Q)
    @ExperimentalOkHttpApi
    class AndroidAsyncDns(
      private val dnsClass: AsyncDns.DnsClass,
      private val network: Network? = null,
    ) : AsyncDns {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 10:07:48 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

       */
      @Throws(IOException::class)
      fun processNextEvent(): Boolean {
        var id = lastId
        var type: String? = null
        val data = Buffer()
    
        while (true) {
          when (source.select(options)) {
            in 0..2 -> {
              completeEvent(id, type, data)
              return true
            }
    
            in 3..4 -> {
              source.readData(data)
            }
    
            in 5..7 -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

        skipWhitespace()
        val type = select(optionsType)
    
        when (type) {
          TYPE_DEVIATION, TYPE_MAPPED, TYPE_DISALLOWED_STD3_MAPPED -> {
            skipWhitespace()
            if (readByte() != ';'.code.toByte()) throw IOException("expected ';'")
    
            // Like "0061" or "0031 2044 0034".
            while (true) {
              skipWhitespace()
    
              when (select(optionsDelimiter)) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt

    class FakeProxySelector : ProxySelector() {
      val proxies: MutableList<Proxy> = mutableListOf()
    
      fun addProxy(proxy: Proxy): FakeProxySelector {
        proxies.add(proxy)
        return this
      }
    
      override fun select(uri: URI): List<Proxy> {
        // Don't handle 'socket' schemes, which the RI's Socket class may request (for SOCKS).
        return if (uri.scheme == "http" || uri.scheme == "https") proxies else listOf(Proxy.NO_PROXY)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertThat(parse("http://username:@host/path"))
          .isEqualTo(parse("http://username@host/path"))
      }
    
      @Test
      fun passwordWithEmptyUsername() {
        // Chrome doesn't mind, but Firefox rejects URLs with empty usernames and non-empty passwords.
        assertThat(parse("http://:@host/path"))
          .isEqualTo(parse("http://host/path"))
        assertThat(parse("http://:password@@host/path").encodedPassword)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_4x.md

        ‘HTTP 103 Early Hints’.
     *  Fix: Read the response even if writing the request fails. This means you'll get a proper HTTP
        response even if the server rejects your request body.
     *  Fix: Use literal IP addresses directly rather than passing them to `DnsOverHttps`.
     *  Fix: Embed Proguard rules to prevent warnings from tools like DexGuard and R8. These warnings
    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)
Back to top