Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for RecordingProxySelector (0.49 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/http/RecordingProxySelector.kt

    import java.io.IOException
    import java.net.InetSocketAddress
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    import okhttp3.internal.format
    
    class RecordingProxySelector : ProxySelector() {
      @JvmField val proxies = mutableListOf<Proxy>()
    
      private val requestedUris = mutableListOf<URI>()
      private val failures = mutableListOf<String>()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/AddressTest.kt

        val a = factory.newAddress(proxySelector = RecordingProxySelector())
        val b = factory.newAddress(proxySelector = RecordingProxySelector())
        assertThat(b).isNotEqualTo(a)
      }
    
      @Test fun addressToString() {
        val address = factory.newAddress()
        assertThat(address.toString())
          .isEqualTo("Address{example.com:80, proxySelector=RecordingProxySelector}")
      }
    
      @Test fun addressWithProxyToString() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

    import okhttp3.internal.connection.RealRoutePlanner
    import okhttp3.internal.connection.RouteDatabase
    import okhttp3.internal.connection.RoutePlanner
    import okhttp3.internal.http.RealInterceptorChain
    import okhttp3.internal.http.RecordingProxySelector
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.internal.TlsUtil.localhost
    
    /**
     * OkHttp is usually tested with functional tests: these use public APIs to confirm behavior against
    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)
  4. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

    import okhttp3.internal.DoubleInetAddressDns
    import okhttp3.internal.connection.RealConnection
    import okhttp3.internal.connection.RealConnection.Companion.IDLE_CONNECTION_HEALTHY_NS
    import okhttp3.internal.http.RecordingProxySelector
    import okhttp3.testing.Flaky
    import okhttp3.testing.PlatformRule
    import okio.BufferedSink
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.BeforeEach
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top