Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for toProxyAddress (0.07 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        val mockWebServer: MockWebServer = MockWebServer()
        var port: Int = mockWebServer.port
        var hostName: String = mockWebServer.hostName
        hostName = mockWebServer.hostName
        val toProxyAddress: Proxy = mockWebServer.toProxyAddress()
        mockWebServer.serverSocketFactory = ServerSocketFactory.getDefault()
        val url: HttpUrl = mockWebServer.url("")
        mockWebServer.bodyLimit = 0L
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

        message = "moved to val",
        replaceWith = ReplaceWith(expression = "port"),
        level = DeprecationLevel.ERROR,
      )
      fun getPort(): Int = port
    
      fun toProxyAddress(): Proxy {
        before() // This implicitly starts the delegate.
        return delegate.toProxyAddress()
      }
    
      @JvmName("-deprecated_serverSocketFactory")
      @Deprecated(
        message = "moved to var",
        replaceWith =
          ReplaceWith(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

          clientTestRule.newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .proxy(server.toProxyAddress())
            .build()
    
        server.enqueue(MockResponse(inTunnel = true))
        server.enqueue(MockResponse())
    
        val call =
          client.newCall(
            Request(
              url =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

          "ConnectionReleased",
        )
      }
    
      @Test
      @Throws(IOException::class)
      fun successfulHttpProxyConnect() {
        server!!.enqueue(MockResponse())
        val proxy = server!!.toProxyAddress()
        client =
          client.newBuilder()
            .proxy(proxy)
            .build()
        val call =
          client.newCall(
            Request.Builder()
              .url("http://www.fakeurl")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top