Create HttpServer

+ Added IHttpLogger to as a log provider to log Http events or errors
 + Added HttpConfiguration to more easily configure the server
 + WebServer.Test project that will be used to test the server
This commit is contained in:
Kaveman
2024-08-12 02:55:12 -07:00
parent 2fd3b929b1
commit 8980b384e7
8 changed files with 170 additions and 0 deletions

13
WebServer/IHttpLogger.cs Normal file
View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Net;
using System.Reflection;
using System.Text;
namespace WebServer {
public interface IHttpLogger {
void Log(string message);
void LogRequest(HttpListenerContext context, List<MethodBase> methodsUsed);
void LogError(HttpListenerContext context, List<MethodBase> methodsUsed, Exception exception);
}
}