Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for dort (0.16 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

            inFrames.add(inFrame)
          }
        }
      }
    
      fun openSocket(): Socket = Socket("localhost", port)
    
      @Synchronized override fun close() {
        executor.shutdown()
        socket?.closeQuietly()
        serverSocket?.closeQuietly()
      }
    
      override fun toString(): String = "MockHttp2Peer[$port]"
    
      private class OutFrame(
        val sequence: Int,
        val start: Long,
        val truncated: Boolean,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        }
      }
    
      private fun supportsUrl(url: HttpUrl): Boolean {
        lock.assertHeld()
    
        val routeUrl = route.address.url
    
        if (url.port != routeUrl.port) {
          return false // Port mismatch.
        }
    
        if (url.host == routeUrl.host) {
          return true // Host match. The URL is supported.
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/RecordingAuthenticator.kt

          "password".toCharArray(),
        ),
    ) : Authenticator() {
      val calls = mutableListOf<String>()
    
      override fun getPasswordAuthentication(): PasswordAuthentication? {
        calls.add(
          "host=$requestingHost port=$requestingPort site=${requestingSite.hostName} " +
            "url=$requestingURL type=$requestorType prompt=$requestingPrompt " +
            "protocol=$requestingProtocol scheme=$requestingScheme",
        )
        return authentication
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

              host: InetAddress,
              port: Int,
            ): Socket? = null
    
            override fun createSocket(
              address: InetAddress,
              port: Int,
              localAddress: InetAddress,
              localPort: Int,
            ): Socket? = null
    
            override fun createSocket(
              host: String,
              port: Int,
            ): Socket? = null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

            )
            .dns(dns)
            .build()
    
        server.enqueue(MockResponse())
    
        val call =
          client.newCall(
            Request(
              url = "https://url-host.com:${server.port}/".toHttpUrl(),
              headers = headersOf("Host", "header-host"),
            ),
          )
        val response = call.execute()
        assertThat(response.isSuccessful).isTrue()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        // ... but they're included in toString().
        assertThat(parse("http://[::1]/").toString()).isEqualTo("http://[::1]/")
    
        // IPv6 colons don't interfere with port numbers or passwords.
        assertThat(parse("http://[::1]:8080/").port).isEqualTo(8080)
        assertThat(parse("http://user:password@[::1]/").password).isEqualTo("password")
        assertThat(parse("http://user:password@[::1]:8080/").host).isEqualTo("::1")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

                ?: throw IllegalArgumentException("unexpected host: $host")
            this.host = encoded
          }
    
        fun port(port: Int) =
          apply {
            require(port in 1..65535) { "unexpected port: $port" }
            this.port = port
          }
    
        fun addPathSegment(pathSegment: String) =
          apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  8. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    ws://foo:443/  s:ws h:foo port:443 p:/
    ws://foo:815/  s:ws h:foo port:815 p:/
    wss://foo:80/  s:wss h:foo port:80 p:/
    wss://foo:81/  s:wss h:foo port:81 p:/
    wss://foo:443/  s:wss h:foo p:/
    wss://foo:815/  s:wss h:foo port:815 p:/
    http:/example.com/  s:http h:example.com p:/
    ftp:/example.com/  s:ftp h:example.com p:/
    https:/example.com/  s:https h:example.com p:/
    madeupscheme:/example.com/  s:madeupscheme p:/example.com/
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

          ?: throw TestAbortedException()
    
        serverIpv4 = MockWebServer()
        serverIpv4.start(localhostIpv4, 0) // Pick any available port.
    
        serverIpv6 = MockWebServer()
        serverIpv6.start(localhostIpv6, serverIpv4.port) // Pick the same port as the IPv4 server.
    
        dnsResults =
          listOf(
            localhostIpv4,
            localhostIpv6,
          )
    
        client =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

          socketHost = address.url.host
          socketPort = address.url.port
        } else {
          val proxyAddress = proxy.address()
          require(proxyAddress is InetSocketAddress) {
            "Proxy.address() is not an InetSocketAddress: ${proxyAddress.javaClass}"
          }
          socketHost = proxyAddress.socketHost
          socketPort = proxyAddress.port
        }
    
        if (socketPort !in 1..65535) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
Back to top