diff --git a/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.GeneratedMSBuildEditorConfig.editorconfig b/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.GeneratedMSBuildEditorConfig.editorconfig index 4f90fc3..e1f4991 100644 --- a/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.GeneratedMSBuildEditorConfig.editorconfig +++ b/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.GeneratedMSBuildEditorConfig.editorconfig @@ -7,4 +7,4 @@ build_property.InvariantGlobalization = build_property.PlatformNeutralAssembly = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = Tesses.Http.Example -build_property.ProjectDir = /home/mike/Documents/Tesses.Http/Tesses.Http.Example/ +build_property.ProjectDir = /home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http.Example/ diff --git a/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.assets.cache b/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.assets.cache index c9ec603..6e8e2f7 100644 Binary files a/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.assets.cache and b/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.assets.cache differ diff --git a/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.csproj.AssemblyReference.cache b/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.csproj.AssemblyReference.cache index 731a32f..4625b5f 100644 Binary files a/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.csproj.AssemblyReference.cache and b/Tesses.Http.Example/obj/Debug/net6.0/Tesses.Http.Example.csproj.AssemblyReference.cache differ diff --git a/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.GeneratedMSBuildEditorConfig.editorconfig b/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.GeneratedMSBuildEditorConfig.editorconfig index 0b4fb55..6d07b85 100644 --- a/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.GeneratedMSBuildEditorConfig.editorconfig +++ b/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.GeneratedMSBuildEditorConfig.editorconfig @@ -7,4 +7,4 @@ build_property.InvariantGlobalization = build_property.PlatformNeutralAssembly = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = Tesses.Http.KitchenSink -build_property.ProjectDir = /home/mike/Documents/Tesses.Http/Tesses.Http.KitchenSink/ +build_property.ProjectDir = /home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http.KitchenSink/ diff --git a/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.assets.cache b/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.assets.cache index cda48aa..c9f573c 100644 Binary files a/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.assets.cache and b/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.assets.cache differ diff --git a/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.csproj.AssemblyReference.cache b/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.csproj.AssemblyReference.cache index 15c0102..cf78da1 100644 Binary files a/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.csproj.AssemblyReference.cache and b/Tesses.Http.KitchenSink/obj/Debug/net6.0/Tesses.Http.KitchenSink.csproj.AssemblyReference.cache differ diff --git a/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.GeneratedMSBuildEditorConfig.editorconfig b/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.GeneratedMSBuildEditorConfig.editorconfig index 83a8a22..1b7e2c8 100644 --- a/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.GeneratedMSBuildEditorConfig.editorconfig +++ b/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.GeneratedMSBuildEditorConfig.editorconfig @@ -1,3 +1,3 @@ is_global = true build_property.RootNamespace = Tesses.Http.VFSCollection -build_property.ProjectDir = /home/mike/Documents/Tesses.Http/Tesses.Http.VFSCollection/ +build_property.ProjectDir = /home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http.VFSCollection/ diff --git a/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.assets.cache b/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.assets.cache index 5804324..9cfd73e 100644 Binary files a/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.assets.cache and b/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.assets.cache differ diff --git a/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.csproj.AssemblyReference.cache b/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.csproj.AssemblyReference.cache index b9e8924..8d8bd12 100644 Binary files a/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.csproj.AssemblyReference.cache and b/Tesses.Http.VFSCollection/obj/Debug/netstandard2.0/Tesses.Http.VFSCollection.csproj.AssemblyReference.cache differ diff --git a/Tesses.Http/ASPNetStyleEndpoint.cs b/Tesses.Http/ASPNetStyleEndpoint.cs index 3f2d7db..9747d74 100644 --- a/Tesses.Http/ASPNetStyleEndpoint.cs +++ b/Tesses.Http/ASPNetStyleEndpoint.cs @@ -16,6 +16,10 @@ namespace Tesses.Http public abstract class ASPEndpointRequestHandler : IRequestHandler { + protected virtual void NotFound(ServerContext ctx) + { + + } protected virtual Stream GetPostFileStream(string name,string filename,string contentType) { return new MemoryStream(); @@ -275,6 +279,7 @@ namespace Tesses.Http ___lazy_load_everything(); Dictionary> args=new Dictionary>(); MultipartParser parser=null; + bool handled=false; foreach(var m in ___RouteMethods) { args.Clear(); @@ -302,11 +307,14 @@ namespace Tesses.Http } m.Call(ctx,parser,args); - + handled=true; break; } } - + if(!handled) + { + NotFound(ctx); + } await Task.CompletedTask; } } diff --git a/Tesses.Http/Tesses.Http.csproj b/Tesses.Http/Tesses.Http.csproj index c6e39d5..47add5a 100644 --- a/Tesses.Http/Tesses.Http.csproj +++ b/Tesses.Http/Tesses.Http.csproj @@ -6,9 +6,9 @@ Tesses.Http Mike Nolan Tesses - 1.0.0 - 1.0.0 - 1.0.0 + 1.0.1 + 1.0.1 + 1.0.1 A Web Server/Client HTTP, WebServer, WebClient https://gitlab.tesses.cf/tesses50/tesses.http diff --git a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.deps.json b/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.deps.json index 2752709..ca3230f 100644 --- a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.deps.json +++ b/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.deps.json @@ -7,7 +7,7 @@ "targets": { ".NETStandard,Version=v2.0": {}, ".NETStandard,Version=v2.0/": { - "Tesses.Http/1.0.0": { + "Tesses.Http/1.0.1": { "dependencies": { "MimeTypesMap": "1.0.8", "NETStandard.Library": "2.0.3", @@ -42,7 +42,7 @@ } }, "libraries": { - "Tesses.Http/1.0.0": { + "Tesses.Http/1.0.1": { "type": "project", "serviceable": false, "sha512": "" diff --git a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.dll b/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.dll index 7b73abb..bb26d2f 100644 Binary files a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.dll and b/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.dll differ diff --git a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.pdb b/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.pdb index 291b368..a1625ea 100644 Binary files a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.pdb and b/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.pdb differ diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfo.cs b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfo.cs index e408480..66923af 100644 --- a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfo.cs +++ b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfo.cs @@ -13,11 +13,11 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("Tesses")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyDescriptionAttribute("A Web Server/Client")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.1")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.1")] [assembly: System.Reflection.AssemblyProductAttribute("Tesses.Http")] [assembly: System.Reflection.AssemblyTitleAttribute("Tesses.Http")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.1")] [assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://gitlab.tesses.cf/tesses50/tesses.http")] // Generated by the MSBuild WriteCodeFragment class. diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfoInputs.cache b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfoInputs.cache index 19f25bb..acc17a1 100644 --- a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfoInputs.cache +++ b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfoInputs.cache @@ -1 +1 @@ -ea81f4c5aa36132a8d98fd8f84bd055ee8efd423 +e19720fae030b0b4a45f373e6fad8e5d168bf687 diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.AssemblyReference.cache b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.AssemblyReference.cache index 5cf1319..78ff482 100644 Binary files a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.AssemblyReference.cache and b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.AssemblyReference.cache differ diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.CoreCompileInputs.cache b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.CoreCompileInputs.cache index f96b2e8..f9f8e81 100644 --- a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.CoreCompileInputs.cache +++ b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -6ac073b0afc1b3fc2934cc42feca1de8e80d19d3 +49567bbfdeef5c942182dce493f3c6aa22656b4c diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll index 7b73abb..bb26d2f 100644 Binary files a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll and b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll differ diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb index 291b368..a1625ea 100644 Binary files a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb and b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb differ diff --git a/Tesses.Http/obj/Tesses.Http.csproj.nuget.dgspec.json b/Tesses.Http/obj/Tesses.Http.csproj.nuget.dgspec.json index e86430a..e14e26c 100644 --- a/Tesses.Http/obj/Tesses.Http.csproj.nuget.dgspec.json +++ b/Tesses.Http/obj/Tesses.Http.csproj.nuget.dgspec.json @@ -5,7 +5,7 @@ }, "projects": { "/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/Tesses.Http.csproj": { - "version": "1.0.0", + "version": "1.0.1", "restore": { "projectUniqueName": "/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/Tesses.Http.csproj", "projectName": "Tesses.Http", diff --git a/Tesses.Http/obj/project.assets.json b/Tesses.Http/obj/project.assets.json index b14f9d6..f526afb 100644 --- a/Tesses.Http/obj/project.assets.json +++ b/Tesses.Http/obj/project.assets.json @@ -248,7 +248,7 @@ "/home/mike/.nuget/packages/": {} }, "project": { - "version": "1.0.0", + "version": "1.0.1", "restore": { "projectUniqueName": "/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/Tesses.Http.csproj", "projectName": "Tesses.Http", diff --git a/Tesses.Http/obj/project.nuget.cache b/Tesses.Http/obj/project.nuget.cache index 31a0bf5..aa16cf3 100644 --- a/Tesses.Http/obj/project.nuget.cache +++ b/Tesses.Http/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "84jwmFi3zgfL/NYUasnrlgO3RTp2WPp/ajWPJmaNlfWrGU2rVvy6VKS31rxuK4/5hdeSawlUwyMkVnhaXJzBIQ==", + "dgSpecHash": "CQ8ixWGPT64Amp0GG2UiGeU2/XIdXcSMLs4kQDsNMe91k5Xr6HKNQS0RAuVNj9EcA59Wn5HOdb3GcwOVeP87pQ==", "success": true, "projectFilePath": "/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/Tesses.Http.csproj", "expectedPackageFiles": [