diff --git a/MiniHTTP/MiniHTTP.csproj b/HTTP/HTTP.csproj similarity index 70% rename from MiniHTTP/MiniHTTP.csproj rename to HTTP/HTTP.csproj index d364a52..3f58778 100644 --- a/MiniHTTP/MiniHTTP.csproj +++ b/HTTP/HTTP.csproj @@ -3,5 +3,7 @@ net8.0 enable enable + Uwaa.HTTP + Uwaa.HTTP diff --git a/MiniHTTP/HttpContent.cs b/HTTP/HttpContent.cs similarity index 97% rename from MiniHTTP/HttpContent.cs rename to HTTP/HttpContent.cs index ca7fb8d..3bf0e60 100644 --- a/MiniHTTP/HttpContent.cs +++ b/HTTP/HttpContent.cs @@ -1,7 +1,7 @@ using System.Diagnostics.CodeAnalysis; using System.Text; -namespace MiniHTTP; +namespace Uwaa.HTTP; /// /// Content served as the body of a HTTP request or response. diff --git a/MiniHTTP/HttpMethod.cs b/HTTP/HttpMethod.cs similarity index 88% rename from MiniHTTP/HttpMethod.cs rename to HTTP/HttpMethod.cs index faedeae..50bad62 100644 --- a/MiniHTTP/HttpMethod.cs +++ b/HTTP/HttpMethod.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP; +namespace Uwaa.HTTP; /// /// HTTP method from a HTTP request. diff --git a/MiniHTTP/HttpRequest.cs b/HTTP/HttpRequest.cs similarity index 99% rename from MiniHTTP/HttpRequest.cs rename to HTTP/HttpRequest.cs index 6e41c46..6d40a9e 100644 --- a/MiniHTTP/HttpRequest.cs +++ b/HTTP/HttpRequest.cs @@ -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; /// /// A HTTP request currently being made to a . diff --git a/MiniHTTP/HttpResponse.cs b/HTTP/HttpResponse.cs similarity index 96% rename from MiniHTTP/HttpResponse.cs rename to HTTP/HttpResponse.cs index 84a5efd..642b526 100644 --- a/MiniHTTP/HttpResponse.cs +++ b/HTTP/HttpResponse.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP.Responses; +namespace Uwaa.HTTP.Responses; public class HttpResponse { diff --git a/MiniHTTP/HttpServer.cs b/HTTP/HttpServer.cs similarity index 98% rename from MiniHTTP/HttpServer.cs rename to HTTP/HttpServer.cs index a19c992..81a8c64 100644 --- a/MiniHTTP/HttpServer.cs +++ b/HTTP/HttpServer.cs @@ -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; /// /// A hypertext transfer protocol server which can listen on a port and deliver content over HTTP, optionally over SSL (HTTPS). diff --git a/MiniHTTP/MIMEType.cs b/HTTP/MIMEType.cs similarity index 99% rename from MiniHTTP/MIMEType.cs rename to HTTP/MIMEType.cs index aad4d24..789bf62 100644 --- a/MiniHTTP/MIMEType.cs +++ b/HTTP/MIMEType.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP; +namespace Uwaa.HTTP; /// /// Represents a Multipurpose Internet Mail Extensions type, which indicates the nature and format of a document/file/chunk of data. diff --git a/MiniHTTP/Responses/BadRequest.cs b/HTTP/Responses/BadRequest.cs similarity index 85% rename from MiniHTTP/Responses/BadRequest.cs rename to HTTP/Responses/BadRequest.cs index fd0b9a8..57cc51c 100644 --- a/MiniHTTP/Responses/BadRequest.cs +++ b/HTTP/Responses/BadRequest.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP.Responses; +namespace Uwaa.HTTP.Responses; /// /// An error caused by an invalid request. diff --git a/MiniHTTP/Responses/Empty.cs b/HTTP/Responses/Empty.cs similarity index 88% rename from MiniHTTP/Responses/Empty.cs rename to HTTP/Responses/Empty.cs index 80cd898..739704a 100644 --- a/MiniHTTP/Responses/Empty.cs +++ b/HTTP/Responses/Empty.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP.Responses; +namespace Uwaa.HTTP.Responses; /// /// Special response which closes the request without sending a response. Used when an endpoint handles its own response, such as websocket upgrades. diff --git a/MiniHTTP/Responses/NotFound.cs b/HTTP/Responses/NotFound.cs similarity index 86% rename from MiniHTTP/Responses/NotFound.cs rename to HTTP/Responses/NotFound.cs index 6771b09..aca01ed 100644 --- a/MiniHTTP/Responses/NotFound.cs +++ b/HTTP/Responses/NotFound.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP.Responses; +namespace Uwaa.HTTP.Responses; /// /// An error caused by a request to non-existent data. diff --git a/MiniHTTP/Responses/OK.cs b/HTTP/Responses/OK.cs similarity index 86% rename from MiniHTTP/Responses/OK.cs rename to HTTP/Responses/OK.cs index bae0391..b5aef9f 100644 --- a/MiniHTTP/Responses/OK.cs +++ b/HTTP/Responses/OK.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP.Responses; +namespace Uwaa.HTTP.Responses; /// /// An simple reply to a request. diff --git a/MiniHTTP/Responses/Redirect.cs b/HTTP/Responses/Redirect.cs similarity index 91% rename from MiniHTTP/Responses/Redirect.cs rename to HTTP/Responses/Redirect.cs index db1b7be..2e31174 100644 --- a/MiniHTTP/Responses/Redirect.cs +++ b/HTTP/Responses/Redirect.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP.Responses; +namespace Uwaa.HTTP.Responses; /// /// A response redirecting the request to another location. diff --git a/MiniHTTP/Routing/CORS.cs b/HTTP/Routing/CORS.cs similarity index 92% rename from MiniHTTP/Routing/CORS.cs rename to HTTP/Routing/CORS.cs index e7c432b..17b5bae 100644 --- a/MiniHTTP/Routing/CORS.cs +++ b/HTTP/Routing/CORS.cs @@ -1,6 +1,6 @@ -using MiniHTTP.Responses; +using Uwaa.HTTP.Responses; -namespace MiniHTTP.Routing; +namespace Uwaa.HTTP.Routing; /// /// Handles CORS preflight requests. diff --git a/MiniHTTP/Routing/FileEndpoint.cs b/HTTP/Routing/FileEndpoint.cs similarity index 98% rename from MiniHTTP/Routing/FileEndpoint.cs rename to HTTP/Routing/FileEndpoint.cs index 5ee2ec1..ce4269b 100644 --- a/MiniHTTP/Routing/FileEndpoint.cs +++ b/HTTP/Routing/FileEndpoint.cs @@ -1,7 +1,7 @@ -using MiniHTTP.Responses; +using Uwaa.HTTP.Responses; using System.Text.RegularExpressions; -namespace MiniHTTP.Routing; +namespace Uwaa.HTTP.Routing; /// /// Special router which serves static files from the filesystem. diff --git a/MiniHTTP/Routing/FuncEndpoint.cs b/HTTP/Routing/FuncEndpoint.cs similarity index 89% rename from MiniHTTP/Routing/FuncEndpoint.cs rename to HTTP/Routing/FuncEndpoint.cs index 22d2f2f..a23e1e6 100644 --- a/MiniHTTP/Routing/FuncEndpoint.cs +++ b/HTTP/Routing/FuncEndpoint.cs @@ -1,6 +1,6 @@ -using MiniHTTP.Responses; +using Uwaa.HTTP.Responses; -namespace MiniHTTP.Routing; +namespace Uwaa.HTTP.Routing; public delegate Task FuncEndpointDelegate(HttpRequest req); diff --git a/MiniHTTP/Routing/Router.cs b/HTTP/Routing/Router.cs similarity index 96% rename from MiniHTTP/Routing/Router.cs rename to HTTP/Routing/Router.cs index 9b3655b..ffd8ac6 100644 --- a/MiniHTTP/Routing/Router.cs +++ b/HTTP/Routing/Router.cs @@ -1,6 +1,6 @@ -using MiniHTTP.Responses; +using Uwaa.HTTP.Responses; -namespace MiniHTTP.Routing; +namespace Uwaa.HTTP.Routing; /// /// Selects one of multiple possible routers. diff --git a/MiniHTTP/Routing/RouterBase.cs b/HTTP/Routing/RouterBase.cs similarity index 95% rename from MiniHTTP/Routing/RouterBase.cs rename to HTTP/Routing/RouterBase.cs index 22fd1a4..2d15b60 100644 --- a/MiniHTTP/Routing/RouterBase.cs +++ b/HTTP/Routing/RouterBase.cs @@ -1,6 +1,6 @@ -using MiniHTTP.Responses; +using Uwaa.HTTP.Responses; -namespace MiniHTTP.Routing; +namespace Uwaa.HTTP.Routing; /// /// Parses a path and generates or acquires a response. diff --git a/MiniHTTP/Routing/StaticEndpoint.cs b/HTTP/Routing/StaticEndpoint.cs similarity index 87% rename from MiniHTTP/Routing/StaticEndpoint.cs rename to HTTP/Routing/StaticEndpoint.cs index b65c3b1..fd9bec4 100644 --- a/MiniHTTP/Routing/StaticEndpoint.cs +++ b/HTTP/Routing/StaticEndpoint.cs @@ -1,6 +1,6 @@ -using MiniHTTP.Responses; +using Uwaa.HTTP.Responses; -namespace MiniHTTP.Routing; +namespace Uwaa.HTTP.Routing; public class StaticEndpoint : RouterBase { diff --git a/MiniHTTP/Websockets/CloseStatus.cs b/HTTP/Websockets/CloseStatus.cs similarity index 90% rename from MiniHTTP/Websockets/CloseStatus.cs rename to HTTP/Websockets/CloseStatus.cs index c25255a..268fca2 100644 --- a/MiniHTTP/Websockets/CloseStatus.cs +++ b/HTTP/Websockets/CloseStatus.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP.Websockets; +namespace Uwaa.HTTP.Websockets; public enum CloseStatus : ushort { diff --git a/MiniHTTP/Websockets/DataFrame.cs b/HTTP/Websockets/DataFrame.cs similarity index 93% rename from MiniHTTP/Websockets/DataFrame.cs rename to HTTP/Websockets/DataFrame.cs index 5a9ac4e..952ee5c 100644 --- a/MiniHTTP/Websockets/DataFrame.cs +++ b/HTTP/Websockets/DataFrame.cs @@ -1,6 +1,6 @@ using System.Text; -namespace MiniHTTP.Websockets; +namespace Uwaa.HTTP.Websockets; public readonly struct DataFrame { diff --git a/MiniHTTP/Websockets/WSOpcode.cs b/HTTP/Websockets/WSOpcode.cs similarity index 80% rename from MiniHTTP/Websockets/WSOpcode.cs rename to HTTP/Websockets/WSOpcode.cs index 9da1b22..7103e65 100644 --- a/MiniHTTP/Websockets/WSOpcode.cs +++ b/HTTP/Websockets/WSOpcode.cs @@ -1,4 +1,4 @@ -namespace MiniHTTP.Websockets; +namespace Uwaa.HTTP.Websockets; public enum WSOpcode : byte { diff --git a/MiniHTTP/Websockets/Websocket.cs b/HTTP/Websockets/Websocket.cs similarity index 99% rename from MiniHTTP/Websockets/Websocket.cs rename to HTTP/Websockets/Websocket.cs index 8d9527f..7e6ccd7 100644 --- a/MiniHTTP/Websockets/Websocket.cs +++ b/HTTP/Websockets/Websocket.cs @@ -2,7 +2,7 @@ using System.Buffers.Binary; using System.Text; -namespace MiniHTTP.Websockets; +namespace Uwaa.HTTP.Websockets; /// /// A websocket client currently connected to a HTTP server.