C# 클래스 CorsProxy.AspNet.CorsProxyRoute

Our route implementation which uses the CorsProxyHttpHandler.
상속: System.Web.Routing.Route
파일 보기 프로젝트 열기: jgauffin/CorsProxy 1 사용 예제들

공개 메소드들

메소드 설명
Allow ( Uri targetUri ) : void

Allow this host

Used to only allow all specified hosts (calls to this method can be chained).

CorsProxyRoute ( string url ) : System

Initializes a new instance of the T:System.Web.Routing.Route class, by using the specified URL pattern and handler class.

GetRouteData ( System.Web.HttpContextBase httpContext ) : System.Web.Routing.RouteData
GetVirtualPath ( System.Web.Routing.RequestContext requestContext, RouteValueDictionary values ) : System.Web.Routing.VirtualPathData

Returns information about the URL that is associated with the route.

비공개 메소드들

메소드 설명
SameHostAndPort ( Uri url1, Uri url ) : bool

메소드 상세

Allow() 공개 메소드

Allow this host
Used to only allow all specified hosts (calls to this method can be chained).
userHostAddress
public Allow ( Uri targetUri ) : void
targetUri System.Uri Uri which proxying is allowed to. Typically your back-end URI.
리턴 void

CorsProxyRoute() 공개 메소드

Initializes a new instance of the T:System.Web.Routing.Route class, by using the specified URL pattern and handler class.
public CorsProxyRoute ( string url ) : System
url string The URL pattern for the route.
리턴 System

GetRouteData() 공개 메소드

public GetRouteData ( System.Web.HttpContextBase httpContext ) : System.Web.Routing.RouteData
httpContext System.Web.HttpContextBase
리턴 System.Web.Routing.RouteData

GetVirtualPath() 공개 메소드

Returns information about the URL that is associated with the route.
public GetVirtualPath ( System.Web.Routing.RequestContext requestContext, RouteValueDictionary values ) : System.Web.Routing.VirtualPathData
requestContext System.Web.Routing.RequestContext An object that encapsulates information about the requested route.
values RouteValueDictionary An object that contains the parameters for a route.
리턴 System.Web.Routing.VirtualPathData