- Timestamp:
- Aug 1, 2022, 12:54:31 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/Web/Handlers/SimpleRedirectHandler.cs
r351 r382 1 1 using System.Net; 2 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest; 3 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse; 2 4 3 5 namespace AllocsFixes.NetConnections.Servers.Web.Handlers { 4 public class SimpleRedirectHandler : PathHandler {6 public class SimpleRedirectHandler : AbsHandler { 5 7 private readonly string target; 6 8 7 public SimpleRedirectHandler (string _target , string _moduleName = null) : base (_moduleName) {9 public SimpleRedirectHandler (string _target) : base (null) { 8 10 target = _target; 9 11 } 10 12 11 public override void HandleRequest ( HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,13 public override void HandleRequest (string _requestPath, HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _con, 12 14 int _permissionLevel) { 13 15 _resp.Redirect (target);
Note:
See TracChangeset
for help on using the changeset viewer.