From 94344deb7e4a8e162cf9e0f0c42b0c3701534ba1 Mon Sep 17 00:00:00 2001 From: Kaliumhexacyanoferrat Date: Thu, 23 Nov 2023 13:34:31 +0100 Subject: [PATCH] First migration steps --- API/Content/ProviderException.cs | 12 ------------ API/GenHTTP.Api.csproj | 8 ++++---- API/Infrastructure/BindingException.cs | 6 ------ .../BuilderMissingPropertyException.cs | 12 ------------ API/Infrastructure/NetworkException.cs | 6 ------ API/Protocol/ProtocolException.cs | 6 ------ Engine/GenHTTP.Engine.csproj | 8 ++++---- .../GenHTTP.Modules.Authentication.csproj | 8 ++++---- Modules/AutoReload/GenHTTP.Modules.AutoReload.csproj | 8 ++++---- Modules/Basics/GenHTTP.Modules.Basics.csproj | 8 ++++---- Modules/Caching/GenHTTP.Modules.Caching.csproj | 8 ++++---- .../GenHTTP.Modules.ClientCaching.csproj | 8 ++++---- .../Compression/GenHTTP.Modules.Compression.csproj | 8 ++++---- .../Controllers/GenHTTP.Modules.Controllers.csproj | 8 ++++---- Modules/Conversion/GenHTTP.Modules.Conversion.csproj | 8 ++++---- .../GenHTTP.Modules.DirectoryBrowsing.csproj | 8 ++++---- .../GenHTTP.Modules.ErrorHandling.csproj | 8 ++++---- Modules/Functional/GenHTTP.Modules.Functional.csproj | 8 ++++---- Modules/IO/GenHTTP.Modules.IO.csproj | 8 ++++---- Modules/Layouting/GenHTTP.Modules.Layouting.csproj | 8 ++++---- .../GenHTTP.Modules.LoadBalancing.csproj | 8 ++++---- Modules/Markdown/GenHTTP.Modules.Markdown.csproj | 8 ++++---- Modules/Pages/GenHTTP.Modules.Pages.csproj | 8 ++++---- .../Placeholders/GenHTTP.Modules.Placeholders.csproj | 8 ++++---- Modules/Practices/GenHTTP.Modules.Practices.csproj | 8 ++++---- Modules/Protobuf/GenHTTP.Modules.Protobuf.csproj | 8 ++++---- Modules/Razor/GenHTTP.Modules.Razor.csproj | 8 ++++---- Modules/Reflection/GenHTTP.Modules.Reflection.csproj | 8 ++++---- Modules/Reflection/IContentHints.cs | 3 --- .../ReverseProxy/GenHTTP.Modules.ReverseProxy.csproj | 8 ++++---- Modules/Robots/GenHTTP.Modules.Robots.csproj | 8 ++++---- Modules/Scriban/GenHTTP.Modules.Scriban.csproj | 8 ++++---- Modules/Security/GenHTTP.Modules.Security.csproj | 8 ++++---- .../GenHTTP.Modules.ServerCaching.csproj | 8 ++++---- .../GenHTTP.Modules.SinglePageApplications.csproj | 8 ++++---- Modules/Sitemaps/GenHTTP.Modules.Sitemaps.csproj | 8 ++++---- .../GenHTTP.Modules.StaticWebsites.csproj | 8 ++++---- .../GenHTTP.Modules.VirtualHosting.csproj | 8 ++++---- .../Webservices/GenHTTP.Modules.Webservices.csproj | 8 ++++---- Modules/Websites/GenHTTP.Modules.Websites.csproj | 8 ++++---- Packages/GenHTTP.Core.nuspec | 12 ++++++------ Playground/GenHTTP.Playground.csproj | 2 +- README.md | 6 +++--- Testing/Engine/PipelineTests.cs | 4 ++-- Testing/GenHTTP.Testing.Acceptance.csproj | 4 ++-- Testing/Modules/ReverseProxyTests.cs | 2 +- 46 files changed, 151 insertions(+), 196 deletions(-) diff --git a/API/Content/ProviderException.cs b/API/Content/ProviderException.cs index 4ad30915..b6b9c84a 100644 --- a/API/Content/ProviderException.cs +++ b/API/Content/ProviderException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; using GenHTTP.Api.Protocol; @@ -36,17 +35,6 @@ public ProviderException(ResponseStatus status, string message, Exception inner) Status = status; } - protected ProviderException(SerializationInfo info, StreamingContext context) : base(info, context) - { - Status = (ResponseStatus)info.GetInt32("Status"); - } - - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - info.AddValue("Status", (int)Status); - } - #endregion } diff --git a/API/GenHTTP.Api.csproj b/API/GenHTTP.Api.csproj index 8efd7fd5..13e830a5 100644 --- a/API/GenHTTP.Api.csproj +++ b/API/GenHTTP.Api.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/API/Infrastructure/BindingException.cs b/API/Infrastructure/BindingException.cs index 7d32df05..3678fda1 100644 --- a/API/Infrastructure/BindingException.cs +++ b/API/Infrastructure/BindingException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; namespace GenHTTP.Api.Infrastructure { @@ -16,11 +15,6 @@ public BindingException(string message, Exception inner) : base(message, inner) } - protected BindingException(SerializationInfo info, StreamingContext context) : base(info, context) - { - - } - } } diff --git a/API/Infrastructure/BuilderMissingPropertyException.cs b/API/Infrastructure/BuilderMissingPropertyException.cs index d9947790..a053c899 100644 --- a/API/Infrastructure/BuilderMissingPropertyException.cs +++ b/API/Infrastructure/BuilderMissingPropertyException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; namespace GenHTTP.Api.Infrastructure { @@ -28,17 +27,6 @@ public BuilderMissingPropertyException(string property) : base($"Missing require Property = property; } - protected BuilderMissingPropertyException(SerializationInfo info, StreamingContext context) : base(info, context) - { - Property = info.GetString("Property") ?? string.Empty; - } - - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - info.AddValue("Property", Property); - } - #endregion } diff --git a/API/Infrastructure/NetworkException.cs b/API/Infrastructure/NetworkException.cs index 50bd9251..0202a6d7 100644 --- a/API/Infrastructure/NetworkException.cs +++ b/API/Infrastructure/NetworkException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; namespace GenHTTP.Api.Infrastructure { @@ -16,11 +15,6 @@ public NetworkException(string reason, Exception? inner = null) : base(reason, i } - protected NetworkException(SerializationInfo info, StreamingContext context) : base(info, context) - { - - } - } } diff --git a/API/Protocol/ProtocolException.cs b/API/Protocol/ProtocolException.cs index 2a8694b7..9e9b4be8 100644 --- a/API/Protocol/ProtocolException.cs +++ b/API/Protocol/ProtocolException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; namespace GenHTTP.Api.Protocol { @@ -22,11 +21,6 @@ public ProtocolException(string reason, Exception inner) : base(reason, inner) } - protected ProtocolException(SerializationInfo info, StreamingContext context) : base(info, context) - { - - } - } } diff --git a/Engine/GenHTTP.Engine.csproj b/Engine/GenHTTP.Engine.csproj index de39e439..2e894504 100644 --- a/Engine/GenHTTP.Engine.csproj +++ b/Engine/GenHTTP.Engine.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Authentication/GenHTTP.Modules.Authentication.csproj b/Modules/Authentication/GenHTTP.Modules.Authentication.csproj index cfb9bfb9..101f0350 100644 --- a/Modules/Authentication/GenHTTP.Modules.Authentication.csproj +++ b/Modules/Authentication/GenHTTP.Modules.Authentication.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/AutoReload/GenHTTP.Modules.AutoReload.csproj b/Modules/AutoReload/GenHTTP.Modules.AutoReload.csproj index c1e5e619..e8e78121 100644 --- a/Modules/AutoReload/GenHTTP.Modules.AutoReload.csproj +++ b/Modules/AutoReload/GenHTTP.Modules.AutoReload.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Basics/GenHTTP.Modules.Basics.csproj b/Modules/Basics/GenHTTP.Modules.Basics.csproj index 845d21c5..db4dec25 100644 --- a/Modules/Basics/GenHTTP.Modules.Basics.csproj +++ b/Modules/Basics/GenHTTP.Modules.Basics.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Caching/GenHTTP.Modules.Caching.csproj b/Modules/Caching/GenHTTP.Modules.Caching.csproj index 1dce94fc..23c6540b 100644 --- a/Modules/Caching/GenHTTP.Modules.Caching.csproj +++ b/Modules/Caching/GenHTTP.Modules.Caching.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/ClientCaching/GenHTTP.Modules.ClientCaching.csproj b/Modules/ClientCaching/GenHTTP.Modules.ClientCaching.csproj index b2316d7d..21bc2e40 100644 --- a/Modules/ClientCaching/GenHTTP.Modules.ClientCaching.csproj +++ b/Modules/ClientCaching/GenHTTP.Modules.ClientCaching.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Compression/GenHTTP.Modules.Compression.csproj b/Modules/Compression/GenHTTP.Modules.Compression.csproj index fe8512f1..a469326a 100644 --- a/Modules/Compression/GenHTTP.Modules.Compression.csproj +++ b/Modules/Compression/GenHTTP.Modules.Compression.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Controllers/GenHTTP.Modules.Controllers.csproj b/Modules/Controllers/GenHTTP.Modules.Controllers.csproj index c076886a..63703b06 100644 --- a/Modules/Controllers/GenHTTP.Modules.Controllers.csproj +++ b/Modules/Controllers/GenHTTP.Modules.Controllers.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Conversion/GenHTTP.Modules.Conversion.csproj b/Modules/Conversion/GenHTTP.Modules.Conversion.csproj index 6bed6be5..8e18f71d 100644 --- a/Modules/Conversion/GenHTTP.Modules.Conversion.csproj +++ b/Modules/Conversion/GenHTTP.Modules.Conversion.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/DirectoryBrowsing/GenHTTP.Modules.DirectoryBrowsing.csproj b/Modules/DirectoryBrowsing/GenHTTP.Modules.DirectoryBrowsing.csproj index 49dd70b3..4244c220 100644 --- a/Modules/DirectoryBrowsing/GenHTTP.Modules.DirectoryBrowsing.csproj +++ b/Modules/DirectoryBrowsing/GenHTTP.Modules.DirectoryBrowsing.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/ErrorHandling/GenHTTP.Modules.ErrorHandling.csproj b/Modules/ErrorHandling/GenHTTP.Modules.ErrorHandling.csproj index 948ced8d..140970b7 100644 --- a/Modules/ErrorHandling/GenHTTP.Modules.ErrorHandling.csproj +++ b/Modules/ErrorHandling/GenHTTP.Modules.ErrorHandling.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Functional/GenHTTP.Modules.Functional.csproj b/Modules/Functional/GenHTTP.Modules.Functional.csproj index 88c99c51..614a163c 100644 --- a/Modules/Functional/GenHTTP.Modules.Functional.csproj +++ b/Modules/Functional/GenHTTP.Modules.Functional.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/IO/GenHTTP.Modules.IO.csproj b/Modules/IO/GenHTTP.Modules.IO.csproj index ddafc09b..c7a8c64b 100644 --- a/Modules/IO/GenHTTP.Modules.IO.csproj +++ b/Modules/IO/GenHTTP.Modules.IO.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Layouting/GenHTTP.Modules.Layouting.csproj b/Modules/Layouting/GenHTTP.Modules.Layouting.csproj index a1d164e0..912053b7 100644 --- a/Modules/Layouting/GenHTTP.Modules.Layouting.csproj +++ b/Modules/Layouting/GenHTTP.Modules.Layouting.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/LoadBalancing/GenHTTP.Modules.LoadBalancing.csproj b/Modules/LoadBalancing/GenHTTP.Modules.LoadBalancing.csproj index 24f69c9b..a0f8fddf 100644 --- a/Modules/LoadBalancing/GenHTTP.Modules.LoadBalancing.csproj +++ b/Modules/LoadBalancing/GenHTTP.Modules.LoadBalancing.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Markdown/GenHTTP.Modules.Markdown.csproj b/Modules/Markdown/GenHTTP.Modules.Markdown.csproj index b87fb35e..fdc40297 100644 --- a/Modules/Markdown/GenHTTP.Modules.Markdown.csproj +++ b/Modules/Markdown/GenHTTP.Modules.Markdown.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Vitaly Derbin, Andreas Nägeli diff --git a/Modules/Pages/GenHTTP.Modules.Pages.csproj b/Modules/Pages/GenHTTP.Modules.Pages.csproj index e10eea61..8587476a 100644 --- a/Modules/Pages/GenHTTP.Modules.Pages.csproj +++ b/Modules/Pages/GenHTTP.Modules.Pages.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Placeholders/GenHTTP.Modules.Placeholders.csproj b/Modules/Placeholders/GenHTTP.Modules.Placeholders.csproj index a40aea2d..04aaf16d 100644 --- a/Modules/Placeholders/GenHTTP.Modules.Placeholders.csproj +++ b/Modules/Placeholders/GenHTTP.Modules.Placeholders.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Practices/GenHTTP.Modules.Practices.csproj b/Modules/Practices/GenHTTP.Modules.Practices.csproj index a3ddf297..d6541731 100644 --- a/Modules/Practices/GenHTTP.Modules.Practices.csproj +++ b/Modules/Practices/GenHTTP.Modules.Practices.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Protobuf/GenHTTP.Modules.Protobuf.csproj b/Modules/Protobuf/GenHTTP.Modules.Protobuf.csproj index d72e8f66..908eedd7 100644 --- a/Modules/Protobuf/GenHTTP.Modules.Protobuf.csproj +++ b/Modules/Protobuf/GenHTTP.Modules.Protobuf.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli, Iulian Caluian diff --git a/Modules/Razor/GenHTTP.Modules.Razor.csproj b/Modules/Razor/GenHTTP.Modules.Razor.csproj index a136be43..4a3ffa03 100644 --- a/Modules/Razor/GenHTTP.Modules.Razor.csproj +++ b/Modules/Razor/GenHTTP.Modules.Razor.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Reflection/GenHTTP.Modules.Reflection.csproj b/Modules/Reflection/GenHTTP.Modules.Reflection.csproj index dc76bb95..0d4a94a0 100644 --- a/Modules/Reflection/GenHTTP.Modules.Reflection.csproj +++ b/Modules/Reflection/GenHTTP.Modules.Reflection.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Reflection/IContentHints.cs b/Modules/Reflection/IContentHints.cs index a35d5aec..8c0b0f9e 100644 --- a/Modules/Reflection/IContentHints.cs +++ b/Modules/Reflection/IContentHints.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Runtime.Serialization; using GenHTTP.Api.Protocol; @@ -17,8 +16,6 @@ public class ContentHint : Dictionary public ContentHint() : base() { } - protected ContentHint(SerializationInfo info, StreamingContext context) : base(info, context) { } - } /// diff --git a/Modules/ReverseProxy/GenHTTP.Modules.ReverseProxy.csproj b/Modules/ReverseProxy/GenHTTP.Modules.ReverseProxy.csproj index b17f6f57..d5e63645 100644 --- a/Modules/ReverseProxy/GenHTTP.Modules.ReverseProxy.csproj +++ b/Modules/ReverseProxy/GenHTTP.Modules.ReverseProxy.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Robots/GenHTTP.Modules.Robots.csproj b/Modules/Robots/GenHTTP.Modules.Robots.csproj index cafcd323..cd5797c4 100644 --- a/Modules/Robots/GenHTTP.Modules.Robots.csproj +++ b/Modules/Robots/GenHTTP.Modules.Robots.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Scriban/GenHTTP.Modules.Scriban.csproj b/Modules/Scriban/GenHTTP.Modules.Scriban.csproj index 99c39585..852ba51d 100644 --- a/Modules/Scriban/GenHTTP.Modules.Scriban.csproj +++ b/Modules/Scriban/GenHTTP.Modules.Scriban.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Security/GenHTTP.Modules.Security.csproj b/Modules/Security/GenHTTP.Modules.Security.csproj index 248d1f16..0f53d133 100644 --- a/Modules/Security/GenHTTP.Modules.Security.csproj +++ b/Modules/Security/GenHTTP.Modules.Security.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/ServerCaching/GenHTTP.Modules.ServerCaching.csproj b/Modules/ServerCaching/GenHTTP.Modules.ServerCaching.csproj index 37535ed3..5bb1e789 100644 --- a/Modules/ServerCaching/GenHTTP.Modules.ServerCaching.csproj +++ b/Modules/ServerCaching/GenHTTP.Modules.ServerCaching.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/SinglePageApplications/GenHTTP.Modules.SinglePageApplications.csproj b/Modules/SinglePageApplications/GenHTTP.Modules.SinglePageApplications.csproj index 384d2598..65800900 100644 --- a/Modules/SinglePageApplications/GenHTTP.Modules.SinglePageApplications.csproj +++ b/Modules/SinglePageApplications/GenHTTP.Modules.SinglePageApplications.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Sitemaps/GenHTTP.Modules.Sitemaps.csproj b/Modules/Sitemaps/GenHTTP.Modules.Sitemaps.csproj index 87128a11..fc2725b0 100644 --- a/Modules/Sitemaps/GenHTTP.Modules.Sitemaps.csproj +++ b/Modules/Sitemaps/GenHTTP.Modules.Sitemaps.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/StaticWebsites/GenHTTP.Modules.StaticWebsites.csproj b/Modules/StaticWebsites/GenHTTP.Modules.StaticWebsites.csproj index f287c07f..19353204 100644 --- a/Modules/StaticWebsites/GenHTTP.Modules.StaticWebsites.csproj +++ b/Modules/StaticWebsites/GenHTTP.Modules.StaticWebsites.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/VirtualHosting/GenHTTP.Modules.VirtualHosting.csproj b/Modules/VirtualHosting/GenHTTP.Modules.VirtualHosting.csproj index 37fbc68b..9fb86aaf 100644 --- a/Modules/VirtualHosting/GenHTTP.Modules.VirtualHosting.csproj +++ b/Modules/VirtualHosting/GenHTTP.Modules.VirtualHosting.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Webservices/GenHTTP.Modules.Webservices.csproj b/Modules/Webservices/GenHTTP.Modules.Webservices.csproj index 7d4481ef..4e3e526d 100644 --- a/Modules/Webservices/GenHTTP.Modules.Webservices.csproj +++ b/Modules/Webservices/GenHTTP.Modules.Webservices.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Modules/Websites/GenHTTP.Modules.Websites.csproj b/Modules/Websites/GenHTTP.Modules.Websites.csproj index 85507f39..ea912e14 100644 --- a/Modules/Websites/GenHTTP.Modules.Websites.csproj +++ b/Modules/Websites/GenHTTP.Modules.Websites.csproj @@ -2,15 +2,15 @@ - net6.0;net7.0 + net6.0;net7.0;net8.0 10.0 enable true - 7.1.0.0 - 7.1.0.0 - 7.1.0 + 8.0.0.0 + 8.0.0.0 + 8.0.0 Andreas Nägeli diff --git a/Packages/GenHTTP.Core.nuspec b/Packages/GenHTTP.Core.nuspec index 879cc16c..ca353d30 100644 --- a/Packages/GenHTTP.Core.nuspec +++ b/Packages/GenHTTP.Core.nuspec @@ -3,7 +3,7 @@ GenHTTP.Core - 7.1.0 + 8.0.0 Basic dependencies for projects using the GenHTTP framework, including the engine itself @@ -22,14 +22,14 @@ - + - + - + - - + + diff --git a/Playground/GenHTTP.Playground.csproj b/Playground/GenHTTP.Playground.csproj index 5580d374..24a4fc2f 100644 --- a/Playground/GenHTTP.Playground.csproj +++ b/Playground/GenHTTP.Playground.csproj @@ -3,7 +3,7 @@ Exe - net7.0 + net8.0 10.0 enable diff --git a/README.md b/README.md index 809a112f..4186cb41 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # GenHTTP Webserver -GenHTTP is a lightweight web server written in pure C# with only a few dependencies to 3rd-party libraries. The main purpose of this project is to quickly create feature rich web applications and web services written in .NET 6/7, allowing developers to concentrate on the functionality rather than on messing around with configuration files, CSS or bundling JS files. Projects are mainly written in .NET, which allows C# developers to use their familiar toolset in web application development as well. +GenHTTP is a lightweight web server written in pure C# with only a few dependencies to 3rd-party libraries. The main purpose of this project is to quickly create feature rich web applications and web services written in .NET 6/7/8, allowing developers to concentrate on the functionality rather than on messing around with configuration files, CSS or bundling JS files. Projects are mainly written in .NET, which allows C# developers to use their familiar toolset in web application development as well. As an example, the website of this project is hosted on a Raspberry Pi: [genhttp.org](https://genhttp.org/) @@ -40,7 +40,7 @@ The [documentation](https://genhttp.org/documentation/) provides a step-by-step ## Building the Server -To build the server from source, clone this repository and run the playground project launcher for .NET 7: +To build the server from source, clone this repository and run the playground project launcher for .NET 8: ```sh git clone https://github.com/Kaliumhexacyanoferrat/GenHTTP.git @@ -76,4 +76,4 @@ The web server was originally developed in 2008 to run on a netbook with an Inte ## Thanks -- [.NET 7](https://github.com/dotnet/core) for a nice platform +- [.NET](https://github.com/dotnet/core) for a nice platform diff --git a/Testing/Engine/PipelineTests.cs b/Testing/Engine/PipelineTests.cs index 722a7df3..7590e0df 100644 --- a/Testing/Engine/PipelineTests.cs +++ b/Testing/Engine/PipelineTests.cs @@ -18,7 +18,7 @@ public void ServerSupportsPipelining() { using var runner = TestRunner.Run(Content.From(Resource.FromString("Hello World!"))); - using var client = new TcpClient("127.1.0.1", runner.Port) + using var client = new TcpClient("128.0.0.1", runner.Port) { ReceiveTimeout = 1000 }; @@ -41,7 +41,7 @@ private static void WriteRequests(Stream stream, int count) for (int i = 0; i < count; i++) { builder.Append("GET / HTTP/1.1\r\n"); - builder.Append("Host: 127.1.0.1\r\n"); + builder.Append("Host: 128.0.0.1\r\n"); builder.Append("Connection: Keep-Alive\r\n\r\n"); } diff --git a/Testing/GenHTTP.Testing.Acceptance.csproj b/Testing/GenHTTP.Testing.Acceptance.csproj index 53e6af7a..de0f7869 100644 --- a/Testing/GenHTTP.Testing.Acceptance.csproj +++ b/Testing/GenHTTP.Testing.Acceptance.csproj @@ -2,11 +2,11 @@ - net7.0 + net8.0 10.0 enable - true + true false diff --git a/Testing/Modules/ReverseProxyTests.cs b/Testing/Modules/ReverseProxyTests.cs index 14e59647..3628e794 100644 --- a/Testing/Modules/ReverseProxyTests.cs +++ b/Testing/Modules/ReverseProxyTests.cs @@ -388,7 +388,7 @@ public async Task TestContentLengthPreserved() public async Task TestBadGateway() { var proxy = Proxy.Create() - .Upstream("http://127.1.0.2"); + .Upstream("http://128.0.0.2"); using var runner = TestRunner.Run(proxy);