Initial commit
This commit is contained in:
28
IPath.cs
Normal file
28
IPath.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user