类库说明文档
![]() | JHRequest Class |
获取当前 HTTP 请求的信息,该类为密封类

Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public sealed class JHRequest
The JHRequest type exposes the following members.

Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() ![]() | GetFormDataTtype(String) |
获取 HTTP 查询字符串变量集合中指定键的值,已去除首尾空格,如果异常或获取为 null,则返回当前类型的默认值 default(Ttype)
|
![]() ![]() | GetFormDataTtype(String, Ttype) |
获取 HTTP 查询字符串变量集合中指定键的值,已去除首尾空格
|
![]() | GetHashCode | (Inherited from Object.) |
![]() ![]() | GetQueryDataTtype(String) |
获取窗体变量集合中指定键的值,已去除首尾空格
|
![]() ![]() | GetQueryDataTtype(String, Ttype) |
获取窗体变量集合中指定键的值,已去除首尾空格
|
![]() ![]() | GetServerVariable(String) |
获取 Web 服务器变量集合中的特定项,已去除首尾空格,默认值为 string.Empty
|
![]() ![]() | GetServerVariable(String, String) |
获取 Web 服务器变量集合中的特定项,已去除首尾空格,如果获取为 null,则返回默认值 defaultValue
|
![]() | GetType | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |

Name | Description | |
---|---|---|
![]() ![]() | HasSupportCookie |
获取一个值,该值指示浏览器是否支持 Cookie
|
![]() ![]() | HistoryUrl |
返回上次请求 URL 的地址,不存在返回 string.Empty
|
![]() ![]() | UserHostIP |
获取客户端的 IP 主机地址
|
![]() ![]() | UserHostName |
获取客户端的 DNS 名称
|
