Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for port (0.14 sec)

  1. 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)
  2. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        )
      }
    
      companion object {
        private const val PROXY_A_PORT = 1001
        private const val PROXY_A_HOST = "proxya"
        private val proxyA =
          Proxy(
            Proxy.Type.HTTP,
            InetSocketAddress.createUnresolved(PROXY_A_HOST, PROXY_A_PORT),
          )
    
        private const val PROXY_B_PORT = 1002
        private const val PROXY_B_HOST = "proxyb"
        private val proxyB =
          Proxy(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  3. 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)
  4. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

      }
    
      @Test
      fun differentInstancesGetDifferentPorts() {
        val other = MockWebServer()
        assertThat(other.port).isNotEqualTo(server.port)
        other.shutdown()
      }
    
      @Test
      fun statementStartsAndStops() {
        val called = AtomicBoolean()
        val statement =
          server.apply(
            object : Statement() {
              override fun evaluate() {
                called.set(true)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  5. 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)
  6. okhttp/src/test/java/okhttp3/CookiesTest.kt

                "CommentURL=\"http://google.com/\"; " +
                "Discard; " +
                "Domain=${urlWithIpAddress.host}; " +
                "Max-Age=60; " +
                "Path=\"/path\"; " +
                "Port=\"80,443,${server.port}\"; " +
                "Secure; " +
                "Version=\"1\"",
            )
            .build(),
        )
        get(urlWithIpAddress)
        val cookies = cookieManager.cookieStore.cookies
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    internal fun HttpUrl.toHostHeader(includeDefaultPort: Boolean = false): String {
      val host =
        if (":" in host) {
          "[$host]"
        } else {
          host
        }
      return if (includeDefaultPort || port != defaultPort(scheme)) {
        "$host:$port"
      } else {
        host
      }
    }
    
    /** Returns a [Locale.US] formatted [String]. */
    internal fun format(
      format: String,
      vararg args: Any,
    ): String {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val size: Int = multipartBody.size()
        val parts: List<MultipartBody.Part> = multipartBody.parts()
      }
    
      @Test @Disabled
      fun multipartBodyPart() {
        val multipartBody: MultipartBody = MultipartBody.Builder().build()
        val part: MultipartBody.Part = multipartBody.part(0)
        val headers: Headers? = part.headers()
        val body: RequestBody = part.body()
      }
    
      @Test @Disabled
      fun okHttpClient() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      /**
       * Starts the server on the loopback interface for the given port.
       *
       * @param port the port to listen to, or 0 for any available port. Automated tests should always
       * use port 0 to avoid flakiness when a specific port is unavailable.
       */
      @Throws(IOException::class)
      @JvmOverloads
      fun start(port: Int = 0) = start(InetAddress.getByName("localhost"), port)
    
      /**
       * Starts the server on the given address and port.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

         *     represented as a combination of scheme, host and port. When empty, the origin is that of
         *     the `streamId`.
         * @param protocol an ALPN protocol, such as `h2`.
         * @param host an IP address or hostname.
         * @param port the IP port associated with the service.
         * @param maxAge time in seconds that this alternative is considered fresh.
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top