C# Class Upac.Core.HttpHandlers.RobotsTxt

This HttpHandler will pass the robots.txt file. It main purpose is to set Disallow: / when on a 1508test.dk server and when in prouction site set the sitemap.org path. Velocity Template Language (VTL) is used when parsing the file on the fly. It should be registered in web.config It will only works on IIS7
Inheritance: IHttpHandler
Mostrar archivo Open project: 1508/upac-for-umbraco

Public Methods

Method Description
ProcessRequest ( HttpContext context ) : void

Enables processing of HTTP Web requests by a custom HttpHandler that implements the T:System.Web.IHttpHandler interface.

Method Details

ProcessRequest() public method

Enables processing of HTTP Web requests by a custom HttpHandler that implements the T:System.Web.IHttpHandler interface.
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.
return void