Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for toProxyAddress (0.12 sec)

  1. mockwebserver/api/mockwebserver3.api

    	public final fun takeRequest ()Lmockwebserver3/RecordedRequest;
    	public final fun takeRequest (JLjava/util/concurrent/TimeUnit;)Lmockwebserver3/RecordedRequest;
    	public final fun toProxyAddress ()Ljava/net/Proxy;
    	public fun toString ()Ljava/lang/String;
    	public final fun url (Ljava/lang/String;)Lokhttp3/HttpUrl;
    	public final fun useHttps (Ljavax/net/ssl/SSLSocketFactory;)V
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/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 Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

      }
    
      @Test
      fun hostnameImplicitlyStarts() {
        assertThat(server.hostName).isNotNull()
      }
    
      @Test
      fun toProxyAddressImplicitlyStarts() {
        assertThat(server.toProxyAddress()).isNotNull()
      }
    
      @Test
      fun differentInstancesGetDifferentPorts() {
        val other = MockWebServer()
        assertThat(other.port).isNotEqualTo(server.port)
        other.shutdown()
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        if (started) return // Don't call start() in case we're already shut down.
        try {
          start()
        } catch (e: IOException) {
          throw RuntimeException(e)
        }
      }
    
      fun toProxyAddress(): Proxy {
        before()
        val address = InetSocketAddress(_inetSocketAddress!!.address.hostName, port)
        return Proxy(Proxy.Type.HTTP, address)
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
Back to top