HttpServerRequestConnectionPoint

封装了关于一个 HTTP 请求连接的详细信息。

这提供了比 HttpServerRequest 中更底层的连接细节。

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun getLocalHost(): String

获取服务器本地绑定的主机名或 IP 地址。

Link copied to clipboard
abstract fun getLocalPort(): Int

获取服务器本地监听的端口号。

Link copied to clipboard
abstract fun getMethod(): HttpMethod

获取请求的 HTTP 方法。

Link copied to clipboard
abstract fun getRemoteHost(): String

获取发起请求的远程客户端的主机名或 IP 地址。

Link copied to clipboard
abstract fun getScheme(): String

获取请求的协议方案,例如 "http" 或 "https"。

Link copied to clipboard
abstract fun getServerHost(): String

获取客户端在 Host 头部中请求的主机名。

Link copied to clipboard
abstract fun getServerPort(): Int

获取客户端请求的服务器端口号。

Link copied to clipboard
abstract fun getUri(): String

获取请求的完整 URI。

Link copied to clipboard
abstract fun getVersion(): String

获取 HTTP 协议版本,例如 "HTTP/1.1"。