Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for localhost (0.3 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

            // 2001:db8:85a3::8a2e:370:7334
            // ::1
            hostname = "[$hostname]"
          }
    
          val localPort = socket.localPort
          // Allow null in failure case to allow for testing bad requests
          this.requestUrl = "$scheme://$hostname:$localPort$path".toHttpUrlOrNull()
        } else {
          this.requestUrl = null
          this.method = null
          this.path = null
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (2)
  2. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

          val scheme = if (socket is SSLSocket) "https" else "http"
          val localPort = socket.localPort
          val hostAndPort =
            headers[":authority"]
              ?: headers["Host"]
              ?: when (val inetAddress = socket.localAddress) {
                is Inet6Address -> "[${inetAddress.hostAddress}]:$localPort"
                else -> "${inetAddress.hostAddress}:$localPort"
              }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.8K bytes
    - Viewed (1)
Back to top