diff --git a/source/ServerHandlers/HttpListenerResponseWrapper.cs b/source/ServerHandlers/HttpListenerResponseWrapper.cs index fa2b32ca30539c00cf32eaf6f921abb0cbe8d5d0..22485e78c6a26e132a9a1fff5cac17874ecc5cd4 100644 --- a/source/ServerHandlers/HttpListenerResponseWrapper.cs +++ b/source/ServerHandlers/HttpListenerResponseWrapper.cs @@ -5,9 +5,13 @@ namespace SuCoS.ServerHandlers; /// /// Provides a wrapper for the . /// -public class HttpListenerResponseWrapper : IHttpListenerResponse +/// +/// Wrap the HttpListenerResponse +/// +/// +public class HttpListenerResponseWrapper(HttpListenerResponse response) : IHttpListenerResponse { - private readonly HttpListenerResponse response; + private readonly HttpListenerResponse response = response; /// public Stream OutputStream => response.OutputStream; @@ -25,13 +29,4 @@ public class HttpListenerResponseWrapper : IHttpListenerResponse get => response.ContentLength64; set => response.ContentLength64 = value; } - - /// - /// Wrap the HttpListenerResponse - /// - /// - public HttpListenerResponseWrapper(HttpListenerResponse response) - { - this.response = response; - } }