Ignore:
Timestamp:
Aug 6, 2022, 11:32:32 PM (2 years ago)
Author:
alloc
Message:

Big refactoring in Web to pass around a Context instead of a bunch of individual arguments all the time

File:
1 edited

Legend:

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

    r383 r387  
    1 using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
    2 using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
    3 
    41namespace AllocsFixes.NetConnections.Servers.Web.Handlers {
    52        public class SimpleRedirectHandler : AbsHandler {
     
    107                }
    118
    12                 public override void HandleRequest (string _requestPath, HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _con,
    13                         int _permissionLevel) {
    14                         _resp.Redirect (target);
     9                public override void HandleRequest (RequestContext _context) {
     10                        _context.Response.Redirect (target);
    1511                }
    1612        }
Note: See TracChangeset for help on using the changeset viewer.