source: binary-improvements/MapRendering/Web/Handlers/SimpleRedirectHandler.cs@ 264

Last change on this file since 264 was 244, checked in by alloc, 9 years ago

Fixes intermediate state

File size: 462 bytes
Line 
1using System;
2using System.Net;
3
4namespace AllocsFixes.NetConnections.Servers.Web.Handlers
5{
6 public class SimpleRedirectHandler : PathHandler
7 {
8 string target;
9
10 public SimpleRedirectHandler (string target, string moduleName = null) : base(moduleName)
11 {
12 this.target = target;
13 }
14
15 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel)
16 {
17 resp.Redirect (target);
18 }
19 }
20}
21
Note: See TracBrowser for help on using the repository browser.