Initial commit

This commit is contained in:
The Doctor
2020-06-18 12:19:06 +01:00
commit 67a03a957e
15 changed files with 947 additions and 0 deletions

28
IPath.cs Normal file
View File

@ -0,0 +1,28 @@
namespace AsyncHttp
{
public abstract class IPath
{
private ServerPath attr;
public Response Response
{ get; set; }
public IPath()
{
Response = new Response();
attr = (ServerPath)GetType().GetCustomAttributes(typeof(ServerPath), false)[0];
}
public string GetPathString()
{
return attr.Path;
}
public string GetMethodString()
{
return attr.Method;
}
public abstract void HandleRequest(Request request);
}
}