C# 클래스 Canonicalize.RedirectHandler

Implements IRouteHandler and IHttpHandler to send a permanent redirect (HTTP status code 301).
상속: IRouteHandler, IHttpHandler
파일 보기 프로젝트 열기: schourode/canonicalize 1 사용 예제들

공개 메소드들

메소드 설명
GetHttpHandler ( System.Web.Routing.RequestContext requestContext ) : IHttpHandler

Provides the object that processes the request.

ProcessRequest ( HttpContext context ) : void

Redirects a HTTP request by setting the status code and the Location header.

RedirectHandler ( Uri location ) : System

Initializes a RedirectHandler with a provided redurict URL.

메소드 상세

GetHttpHandler() 공개 메소드

Provides the object that processes the request.
public GetHttpHandler ( System.Web.Routing.RequestContext requestContext ) : IHttpHandler
requestContext System.Web.Routing.RequestContext
리턴 IHttpHandler

ProcessRequest() 공개 메소드

Redirects a HTTP request by setting the status code and the Location header.
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
리턴 void

RedirectHandler() 공개 메소드

Initializes a RedirectHandler with a provided redurict URL.
public RedirectHandler ( Uri location ) : System
location System.Uri The URL to which the request should be redirected.
리턴 System