Property | Type | Description | |
---|---|---|---|
HtmlNewLine | string |
Method | Description | |
---|---|---|
FormatCompleteUrl ( string content ) : string |
把content中的虚拟路径转化成完整的url 例如: /abc/e.aspx 转化成 http://www.spacebuilder.cn/abc/e.aspx |
|
GetIP ( ) : string |
获取IP地址
|
|
GetIP ( |
透过代理获取真实IP
|
|
GetPhysicalFilePath ( string filePath ) : string |
获取物理文件路径
|
|
GetServerDomain ( |
获取根域名
|
|
HostPath ( |
获取带传输协议的完整的主机地址
|
|
HtmlDecode ( string rawContent ) : string |
html解码
|
|
HtmlEncode ( string rawContent ) : string |
html编码 调用HttpUtility.HtmlEncode(),当前已知仅作如下转换:
|
|
ResolveUrl ( string relativeUrl ) : string |
将URL转换为在请求客户端可用的 URL(转换 ~/ 为绝对路径)
|
|
Return304 ( |
返回 StatusCode 304
|
|
Return403 ( |
返回 StatusCode 403
|
|
Return404 ( |
返回 StatusCode 404
|
|
SetStatusCodeForError ( System.Web.HttpResponseBase response ) : void |
设置当前响应的状态码为指定值
|
|
UrlDecode ( string urlToDecode ) : string |
Url解码
|
|
UrlEncode ( string urlToEncode ) : string |
Url编码
|
Method | Description | |
---|---|---|
ReturnStatusCode ( |
返回http状态码
|
public static FormatCompleteUrl ( string content ) : string | ||
content | string | content |
return | string |
public static GetIP ( |
||
httpContext | HttpContext | |
return | string |
public static GetPhysicalFilePath ( string filePath ) : string | ||
filePath | string |
///
|
return | string |
public static GetServerDomain ( |
||
uri | uri | |
domainRules | string | 域名规则 |
return | string |
public static HostPath ( |
||
uri | Uri | |
return | string |
public static HtmlDecode ( string rawContent ) : string | ||
rawContent | string | 待解码的字符串 |
return | string |
public static HtmlEncode ( string rawContent ) : string | ||
rawContent | string | 待编码的字符串 |
return | string |
public static ResolveUrl ( string relativeUrl ) : string | ||
relativeUrl | string | 相对url |
return | string |
public static Return304 ( |
||
httpContext | HttpContext | |
endResponse | bool | 是否终止HttpResponse |
return | void |
public static Return403 ( |
||
httpContext | HttpContext | |
return | void |
public static Return404 ( |
||
httpContext | HttpContext | |
return | void |
public static SetStatusCodeForError ( System.Web.HttpResponseBase response ) : void | ||
response | System.Web.HttpResponseBase | 当前响应 |
return | void |
public static UrlDecode ( string urlToDecode ) : string | ||
urlToDecode | string | 待解码的字符串 |
return | string |
public static UrlEncode ( string urlToEncode ) : string | ||
urlToEncode | string | 待编码的url字符串 |
return | string |