This commit is contained in:
uwaa 2024-11-03 20:05:26 +00:00
parent b0aa3baff3
commit 181d77fc78
22 changed files with 33 additions and 31 deletions

View file

@ -3,5 +3,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Uwaa.HTTP</RootNamespace>
<AssemblyName>Uwaa.HTTP</AssemblyName>
</PropertyGroup>
</Project>

View file

@ -1,7 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Text;
namespace MiniHTTP;
namespace Uwaa.HTTP;
/// <summary>
/// Content served as the body of a HTTP request or response.

View file

@ -1,4 +1,4 @@
namespace MiniHTTP;
namespace Uwaa.HTTP;
/// <summary>
/// HTTP method from a HTTP request.

View file

@ -3,10 +3,10 @@ using System.Security.Cryptography;
using System.Text;
using System.Web;
using System.Collections.Specialized;
using MiniHTTP.Websockets;
using MiniHTTP.Responses;
using Uwaa.HTTP.Websockets;
using Uwaa.HTTP.Responses;
namespace MiniHTTP;
namespace Uwaa.HTTP;
/// <summary>
/// A HTTP request currently being made to a <see cref="HttpServer"/>.

View file

@ -1,4 +1,4 @@
namespace MiniHTTP.Responses;
namespace Uwaa.HTTP.Responses;
public class HttpResponse
{

View file

@ -2,10 +2,10 @@
using System.Net.Security;
using System.Net.Sockets;
using System.Security.Cryptography.X509Certificates;
using MiniHTTP.Responses;
using MiniHTTP.Routing;
using Uwaa.HTTP.Responses;
using Uwaa.HTTP.Routing;
namespace MiniHTTP;
namespace Uwaa.HTTP;
/// <summary>
/// A hypertext transfer protocol server which can listen on a port and deliver content over HTTP, optionally over SSL (HTTPS).

View file

@ -1,4 +1,4 @@
namespace MiniHTTP;
namespace Uwaa.HTTP;
/// <summary>
/// Represents a Multipurpose Internet Mail Extensions type, which indicates the nature and format of a document/file/chunk of data.

View file

@ -1,4 +1,4 @@
namespace MiniHTTP.Responses;
namespace Uwaa.HTTP.Responses;
/// <summary>
/// An error caused by an invalid request.

View file

@ -1,4 +1,4 @@
namespace MiniHTTP.Responses;
namespace Uwaa.HTTP.Responses;
/// <summary>
/// Special response which closes the request without sending a response. Used when an endpoint handles its own response, such as websocket upgrades.

View file

@ -1,4 +1,4 @@
namespace MiniHTTP.Responses;
namespace Uwaa.HTTP.Responses;
/// <summary>
/// An error caused by a request to non-existent data.

View file

@ -1,4 +1,4 @@
namespace MiniHTTP.Responses;
namespace Uwaa.HTTP.Responses;
/// <summary>
/// An simple reply to a request.

View file

@ -1,4 +1,4 @@
namespace MiniHTTP.Responses;
namespace Uwaa.HTTP.Responses;
/// <summary>
/// A response redirecting the request to another location.

View file

@ -1,6 +1,6 @@
using MiniHTTP.Responses;
using Uwaa.HTTP.Responses;
namespace MiniHTTP.Routing;
namespace Uwaa.HTTP.Routing;
/// <summary>
/// Handles CORS preflight requests.

View file

@ -1,7 +1,7 @@
using MiniHTTP.Responses;
using Uwaa.HTTP.Responses;
using System.Text.RegularExpressions;
namespace MiniHTTP.Routing;
namespace Uwaa.HTTP.Routing;
/// <summary>
/// Special router which serves static files from the filesystem.

View file

@ -1,6 +1,6 @@
using MiniHTTP.Responses;
using Uwaa.HTTP.Responses;
namespace MiniHTTP.Routing;
namespace Uwaa.HTTP.Routing;
public delegate Task<HttpResponse?> FuncEndpointDelegate(HttpRequest req);

View file

@ -1,6 +1,6 @@
using MiniHTTP.Responses;
using Uwaa.HTTP.Responses;
namespace MiniHTTP.Routing;
namespace Uwaa.HTTP.Routing;
/// <summary>
/// Selects one of multiple possible routers.

View file

@ -1,6 +1,6 @@
using MiniHTTP.Responses;
using Uwaa.HTTP.Responses;
namespace MiniHTTP.Routing;
namespace Uwaa.HTTP.Routing;
/// <summary>
/// Parses a path and generates or acquires a response.

View file

@ -1,6 +1,6 @@
using MiniHTTP.Responses;
using Uwaa.HTTP.Responses;
namespace MiniHTTP.Routing;
namespace Uwaa.HTTP.Routing;
public class StaticEndpoint : RouterBase
{

View file

@ -1,4 +1,4 @@
namespace MiniHTTP.Websockets;
namespace Uwaa.HTTP.Websockets;
public enum CloseStatus : ushort
{

View file

@ -1,6 +1,6 @@
using System.Text;
namespace MiniHTTP.Websockets;
namespace Uwaa.HTTP.Websockets;
public readonly struct DataFrame
{

View file

@ -1,4 +1,4 @@
namespace MiniHTTP.Websockets;
namespace Uwaa.HTTP.Websockets;
public enum WSOpcode : byte
{

View file

@ -2,7 +2,7 @@
using System.Buffers.Binary;
using System.Text;
namespace MiniHTTP.Websockets;
namespace Uwaa.HTTP.Websockets;
/// <summary>
/// A websocket client currently connected to a HTTP server.