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

18
NotFoundPath.cs Normal file
View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsyncHttp
{
[ServerPath(Method.ALL, "")]
public sealed class NotFoundPath : IPath
{
public override void HandleRequest(Request request)
{
Response.Body = new byte[0];
Response.Code = 404;
}
}
}