Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Address (0.04 sec)

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

     * explicitly requested), this also includes that proxy information. For secure connections the
     * address also includes the SSL socket factory, hostname verifier, and certificate pinner.
     *
     * HTTP requests that share the same [Address] may also share the same [Connection].
     */
    class Address(
      uriHost: String,
      uriPort: Int,
      /** Returns the service that will be used to resolve IP addresses for hostnames. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Route.kt

     *  * **IP address:** whether connecting directly to an origin server or a proxy, opening a socket
     *    requires an IP address. The DNS server may return multiple IP addresses to attempt.
     *
     * Each route is a specific selection of these options.
     */
    class Route(
      @get:JvmName("address") val address: Address,
      /**
       * Returns the [Proxy] of this route.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt

        val InetSocketAddress.socketHost: String get() {
          // The InetSocketAddress was specified with a string (either a numeric IP or a host name). If
          // it is a name, all IPs for that name should be tried. If it is an IP address, only that IP
          // address should be tried.
          val address = address ?: return hostName
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/HostSpecifier.java

       * instead.
       *
       * <p>The specifier must be in one of these formats:
       *
       * <ul>
       *   <li>A domain name, like {@code google.com}
       *   <li>A IPv4 address string, like {@code 127.0.0.1}
       *   <li>An IPv6 address string with or without brackets, like {@code [2001:db8::1]} or {@code
       *       2001:db8::1}
       * </ul>
       *
       * @throws IllegalArgumentException if the specifier is not valid.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureExtendedTrustManager.kt

        authType: String,
        socket: Socket?,
      ) = throw CertificateException("Unsupported operation")
    
      private fun Socket.peerName(): String {
        val address = remoteSocketAddress
        return if (address is InetSocketAddress) address.hostName else address.toString()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

        for (challenge in challenges) {
          if (!"Basic".equals(challenge.scheme, ignoreCase = true)) {
            continue
          }
    
          val dns = route?.address?.dns ?: defaultDns
          val auth =
            if (proxyAuthorization) {
              val proxyAddress = proxy.address() as InetSocketAddress
              Authenticator.requestPasswordAuthentication(
                proxyAddress.hostName,
                proxy.connectToInetAddress(url, dns),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/FakeRoutePlanner.kt

        deferredPlans.isNotEmpty() || nextPlanIndex < plans.size || autoGeneratePlans
    
      override fun sameHostAndPort(url: HttpUrl): Boolean = url.host == address.url.host && url.port == address.url.port
    
      override fun close() {
        factory.close()
      }
    
      inner class FakePlan(
        val id: Int,
      ) : RoutePlanner.Plan {
        var planningThrowable: Throwable? = null
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

          file.name.endsWith(".png") -> "image/png"
          else -> "text/plain"
        }
    
      private fun Socket.peerName(): String {
        val address = remoteSocketAddress
        return if (address is InetSocketAddress) address.hostName else address.toString()
      }
    
      companion object {
        val logger: Logger = Logger.getLogger(Http2Server::class.java.name)
    
        @JvmStatic
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

          connectionSpecs = connectionSpecs,
          proxySelector = proxySelector,
        )
    
      fun newRoute(
        address: Address = newAddress(),
        proxy: Proxy = this.proxy,
        socketAddress: InetSocketAddress = InetSocketAddress.createUnresolved(uriHost, uriPort),
      ): Route =
        Route(
          address = address,
          proxy = proxy,
          socketAddress = socketAddress,
        )
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top