Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for effectivePort (0.06 sec)

  1. okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt

            else -> ""
          }
        val effectiveHost =
          when {
            url.host.contains(":") -> "[" + url.host + "]"
            else -> url.host
          }
        assertThat(url.scheme, "scheme").isEqualTo(testData.scheme)
        assertThat(effectiveHost, "host").isEqualTo(testData.host)
        assertThat(effectivePort, "port").isEqualTo(testData.port)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

                append(host)
              }
            }
    
            if (port != -1 || scheme != null) {
              val effectivePort = effectivePort()
              if (scheme == null || effectivePort != defaultPort(scheme!!)) {
                append(':')
                append(effectivePort)
              }
            }
    
            encodedPathSegments.toPathString(this)
    
            if (encodedQueryNamesAndValues != null) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top