- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Handlers/SimpleRedirectHandler.cs
r244 r325 1 using System;2 1 using System.Net; 3 2 4 namespace AllocsFixes.NetConnections.Servers.Web.Handlers 5 { 6 public class SimpleRedirectHandler : PathHandler 7 { 8 string target; 3 namespace AllocsFixes.NetConnections.Servers.Web.Handlers { 4 public class SimpleRedirectHandler : PathHandler { 5 private readonly string target; 9 6 10 public SimpleRedirectHandler (string target, string moduleName = null) : base(moduleName) 11 { 7 public SimpleRedirectHandler (string target, string moduleName = null) : base (moduleName) { 12 8 this.target = target; 13 9 } 14 10 15 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, int permissionLevel)16 {11 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnection user, 12 int permissionLevel) { 17 13 resp.Redirect (target); 18 14 } 19 15 } 20 16 } 21
Note:
See TracChangeset
for help on using the changeset viewer.