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

Switched to use SpaceWizards.HttpListener

File:
1 moved

Legend:

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

    r381 r382  
    11using System.Net;
     2using HttpListenerRequest = SpaceWizards.HttpListener.HttpListenerRequest;
     3using HttpListenerResponse = SpaceWizards.HttpListener.HttpListenerResponse;
    24
    35namespace AllocsFixes.NetConnections.Servers.Web.Handlers {
    4         public abstract class PathHandler {
     6        public abstract class AbsHandler {
    57                protected readonly string moduleName;
    68                protected string urlBasePath;
    79                protected Web parent;
    810
    9                 protected PathHandler (string _moduleName, int _defaultPermissionLevel = 0) {
     11                public string ModuleName => moduleName;
     12                public string UrlBasePath => urlBasePath;
     13
     14                protected AbsHandler (string _moduleName, int _defaultPermissionLevel = 0) {
    1015                        moduleName = _moduleName;
    1116                        WebPermissions.Instance.AddKnownModule (_moduleName, _defaultPermissionLevel);
    1217                }
    1318
    14                 public string ModuleName => moduleName;
    15 
    16                 public abstract void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
     19                public abstract void HandleRequest (string _requestPath, HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _con,
    1720                        int _permissionLevel);
    1821
Note: See TracChangeset for help on using the changeset viewer.