Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for Address (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/Address.kt

      /** Returns the SSL socket factory, or null if this is not an HTTPS address. */
      @get:JvmName("sslSocketFactory") val sslSocketFactory: SSLSocketFactory?,
      /** Returns the hostname verifier, or null if this is not an HTTPS address. */
      @get:JvmName("hostnameVerifier") val hostnameVerifier: HostnameVerifier?,
      /** Returns this address's certificate pinner, or null if this is not an HTTPS address. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

      //
      if (b != address.size) {
        if (compress == -1) return null // Address didn't have compression or enough groups.
        address.copyInto(address, address.size - (b - compress), compress, b)
        address.fill(0.toByte(), compress, compress + (address.size - b))
      }
    
      return address
    }
    
    /** Decodes an IPv4 address suffix of an IPv6 address, like 1111::5555:6666:192.168.0.1. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        // If the non-host fields of the address don't overlap, we're done.
        if (!this.route.address.equalsNonHost(address)) return false
    
        // If the host exactly matches, we're done: this connection can carry the address.
        if (address.url.host == this.route().address.url.host) {
          return true // This connection is a perfect match.
        }
    
    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)
  4. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

      }
    
      /**
       * Sets a policy that applies to [address].
       * Overwrites any existing policy for that address.
       */
      @ExperimentalOkHttpApi
      fun setPolicy(
        address: Address,
        policy: AddressPolicy,
      ) {
        delegate.setPolicy(address, policy)
      }
    
      /**
       * A policy for how the pool should treat a specific address.
       */
      class AddressPolicy(
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Dns.kt

     * or to force a specific known IP address.
     *
     * Implementations of this interface must be safe for concurrent use.
     */
    fun interface Dns {
      /**
       * Returns the IP addresses of `hostname`, in the order they will be attempted by OkHttp. If a
       * connection to an address fails, OkHttp will retry the connection with the next address until
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/DoubleInetAddressDns.kt

    package okhttp3.internal
    
    import java.net.InetAddress
    import okhttp3.Dns
    
    /**
     * A network that always resolves two IP addresses per host. Use this when testing route selection
     * fallbacks to guarantee that a fallback address is available.
     */
    class DoubleInetAddressDns : Dns {
      override fun lookup(hostname: String): List<InetAddress> {
        val addresses = Dns.SYSTEM.lookup(hostname)
        return listOf(addresses[0], addresses[0])
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 10:26:25 GMT 2023
    - 1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

      }
    
      @Throws(IOException::class)
      open fun connectSocket(
        socket: Socket,
        address: InetSocketAddress,
        connectTimeout: Int,
      ) {
        socket.connect(address, connectTimeout)
      }
    
      open fun log(
        message: String,
        level: Int = INFO,
        t: Throwable? = null,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

              pingIntervalMillis = client.pingIntervalMillis,
              retryOnConnectionFailure = client.retryOnConnectionFailure,
              fastFallback = client.fastFallback,
              address = client.address(request.url),
              connectionUser = CallConnectionUser(this, connectionPool.connectionListener, chain),
              routeDatabase = client.routeDatabase,
            )
          this.exchangeFinder =
            when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  9. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

      }
    
      private fun assertRoute(
        route: Route,
        address: Address,
        proxy: Proxy,
        socketAddress: InetAddress,
        socketPort: Int,
      ) {
        assertThat(route.address).isEqualTo(address)
        assertThat(route.proxy).isEqualTo(proxy)
        assertThat(route.socketAddress.address).isEqualTo(socketAddress)
        assertThat(route.socketAddress.port).isEqualTo(socketPort)
      }
    
    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)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

          proxySelector = proxySelector,
        )
      }
    
      fun newRoute(
        address: Address = newAddress(),
        proxy: Proxy = this.proxy,
        socketAddress: InetSocketAddress = InetSocketAddress.createUnresolved(uriHost, uriPort),
      ): Route {
        return Route(
          address = address,
          proxy = proxy,
          socketAddress = socketAddress,
        )
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top