Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SpecificHostSocketFactory (0.1 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/SpecificHostSocketFactory.kt

    import java.net.SocketAddress
    import okhttp3.internal.platform.Platform
    
    /**
     * A [SocketFactory] that redirects connections to [defaultAddress] or specific overridden address via [set].
     */
    class SpecificHostSocketFactory(
      val defaultAddress: InetSocketAddress?,
    ) : DelegatingSocketFactory(getDefault()) {
      private val hostMapping = mutableMapOf<InetAddress, InetSocketAddress>()
    
      /** Sets the [real] address for [requested].  */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top