C# Class Canonicalize.HttpRequestBaseExtensions

Adds extension methods on HttpRequestBase.
ファイルを表示 Open project: schourode/canonicalize

Public Methods

Method Description
GetOriginalUrl ( this request ) : Uri

Gets the original URL requested by the client, without artifacts from proxies or load balancers. In particular HTTP headers Host, X-Forwarded-Host, X-Forwarded-Proto are applied on top of HttpRequestBase.Url.

Method Details

GetOriginalUrl() public static method

Gets the original URL requested by the client, without artifacts from proxies or load balancers. In particular HTTP headers Host, X-Forwarded-Host, X-Forwarded-Proto are applied on top of HttpRequestBase.Url.
public static GetOriginalUrl ( this request ) : Uri
request this The request for which the original URL should be computed.
return System.Uri