Ignore:
Timestamp:
Aug 1, 2022, 12:54:31 PM (2 years ago)
Author:
alloc
Message:

Switched to use SpaceWizards.HttpListener

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/MapRendering/Web/Handlers/SimpleRedirectHandler.cs

    r351 r382  
    11using System.Net;
     2using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
     3using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
    24
    35namespace AllocsFixes.NetConnections.Servers.Web.Handlers {
    4         public class SimpleRedirectHandler : PathHandler {
     6        public class SimpleRedirectHandler : AbsHandler {
    57                private readonly string target;
    68
    7                 public SimpleRedirectHandler (string _target, string _moduleName = null) : base (_moduleName) {
     9                public SimpleRedirectHandler (string _target) : base (null) {
    810                        target = _target;
    911                }
    1012
    11                 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
     13                public override void HandleRequest (string _requestPath, HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _con,
    1214                        int _permissionLevel) {
    1315                        _resp.Redirect (target);
Note: See TracChangeset for help on using the changeset viewer.