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