diff --git a/Tesses.Http/HttpPassthroughReverseProxy.cs b/Tesses.Http/HttpPassthroughReverseProxy.cs index 278c82c..92980c3 100644 --- a/Tesses.Http/HttpPassthroughReverseProxy.cs +++ b/Tesses.Http/HttpPassthroughReverseProxy.cs @@ -87,7 +87,7 @@ namespace Tesses.Http } public RequestLine RequestLine {get{return p.SentHeaders.FirstLine;} set{p.SentHeaders.FirstLine=value;}} } - public sealed class HTTPClient + public sealed class HTTPClient : IDisposable { TcpClient client; Stream strm; @@ -219,6 +219,24 @@ namespace Tesses.Http return HTTPClient.Open(method,myUrl); } + + public void Dispose() + { + try{ + if(strm != null) + strm.Dispose(); + }catch(Exception ex) + { + _=ex; + } + try{ + if(client != null) + client.Dispose(); + }catch(Exception ex) + { + _=ex; + } + } } public class HTTPClientResponse diff --git a/Tesses.Http/Tesses.Http.csproj b/Tesses.Http/Tesses.Http.csproj index 0832442..8bd877f 100644 --- a/Tesses.Http/Tesses.Http.csproj +++ b/Tesses.Http/Tesses.Http.csproj @@ -6,9 +6,9 @@ Tesses.Http Mike Nolan Tesses - 1.0.2 - 1.0.2 - 1.0.2 + 1.0.3 + 1.0.3 + 1.0.3 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 deleted file mode 100644 index e027cb6..0000000 --- a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.deps.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETStandard,Version=v2.0/", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETStandard,Version=v2.0": {}, - ".NETStandard,Version=v2.0/": { - "Tesses.Http/1.0.2": { - "dependencies": { - "MimeTypesMap": "1.0.8", - "NETStandard.Library": "2.0.3", - "Newtonsoft.Json": "13.0.1" - }, - "runtime": { - "Tesses.Http.dll": {} - } - }, - "Microsoft.NETCore.Platforms/1.1.0": {}, - "MimeTypesMap/1.0.8": { - "runtime": { - "lib/netstandard2.0/MimeTypesMap.dll": { - "assemblyVersion": "1.0.8.0", - "fileVersion": "1.0.8.0" - } - } - }, - "NETStandard.Library/2.0.3": { - "dependencies": { - "Microsoft.NETCore.Platforms": "1.1.0" - } - }, - "Newtonsoft.Json/13.0.1": { - "runtime": { - "lib/netstandard2.0/Newtonsoft.Json.dll": { - "assemblyVersion": "13.0.0.0", - "fileVersion": "13.0.1.25517" - } - } - } - } - }, - "libraries": { - "Tesses.Http/1.0.2": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "Microsoft.NETCore.Platforms/1.1.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==", - "path": "microsoft.netcore.platforms/1.1.0", - "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" - }, - "MimeTypesMap/1.0.8": { - "type": "package", - "serviceable": true, - "sha512": "sha512-iOm6Zar+yVROhlyrGGSJTfThvNoHLUeYeQQND9YD/ot/nA2qsWUp9kP2MHTdF9P7I8afW6eCf8vdELLZjDFdSQ==", - "path": "mimetypesmap/1.0.8", - "hashPath": "mimetypesmap.1.0.8.nupkg.sha512" - }, - "NETStandard.Library/2.0.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==", - "path": "netstandard.library/2.0.3", - "hashPath": "netstandard.library.2.0.3.nupkg.sha512" - }, - "Newtonsoft.Json/13.0.1": { - "type": "package", - "serviceable": true, - "sha512": "sha512-ppPFpBcvxdsfUonNcvITKqLl3bqxWbDCZIzDWHzjpdAHRFfZe0Dw9HmA0+za13IdyrgJwpkDTDA9fHaxOrt20A==", - "path": "newtonsoft.json/13.0.1", - "hashPath": "newtonsoft.json.13.0.1.nupkg.sha512" - } - } -} \ No newline at end of file diff --git a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.dll b/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.dll deleted file mode 100644 index c10102d..0000000 Binary files a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.dll and /dev/null differ diff --git a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.pdb b/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.pdb deleted file mode 100644 index d28597e..0000000 Binary files a/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.pdb and /dev/null 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 2c7323c..602cbf8 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.2")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.2")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.3")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.3")] [assembly: System.Reflection.AssemblyProductAttribute("Tesses.Http")] [assembly: System.Reflection.AssemblyTitleAttribute("Tesses.Http")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.2")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.3")] [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 94e8f5e..7474cf6 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 @@ -ef665c6697ab0ceacafd25239c9a77510e969592 +474729b5e555789d618d8c5cc2e1056d7996834a 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 deleted file mode 100644 index f9f8e81..0000000 --- a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -49567bbfdeef5c942182dce493f3c6aa22656b4c diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.FileListAbsolute.txt b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.FileListAbsolute.txt index 8bb2386..e4c4429 100644 --- a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.FileListAbsolute.txt +++ b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.FileListAbsolute.txt @@ -8,13 +8,3 @@ /home/mike/Documents/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.CoreCompileInputs.cache /home/mike/Documents/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll /home/mike/Documents/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.deps.json -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.dll -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/bin/Debug/netstandard2.0/Tesses.Http.pdb -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.AssemblyReference.cache -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.GeneratedMSBuildEditorConfig.editorconfig -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfoInputs.cache -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.AssemblyInfo.cs -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.csproj.CoreCompileInputs.cache -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll -/home/mike/Documents/Code/WorkingOn/Tesses.Http/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll deleted file mode 100644 index c10102d..0000000 Binary files a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.dll and /dev/null differ diff --git a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb b/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb deleted file mode 100644 index d28597e..0000000 Binary files a/Tesses.Http/obj/Debug/netstandard2.0/Tesses.Http.pdb and /dev/null differ