C# Класс Canonicalize.RedirectHandler

Implements IRouteHandler and IHttpHandler to send a permanent redirect (HTTP status code 301).
Наследование: IRouteHandler, IHttpHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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