diff --git a/src/http/partials/Server/HTTP.ServerResponse.cs b/src/http/partials/Server/HTTP.ServerResponse.cs index ec7bbcc4..6af3a061 100644 --- a/src/http/partials/Server/HTTP.ServerResponse.cs +++ b/src/http/partials/Server/HTTP.ServerResponse.cs @@ -16,6 +16,7 @@ internal class ServerResponse : IHTTP.ServerResponse public ServerResponse(HttpListenerResponse response) { + NativeResponse = response; IsOpened = true; Encoding = Encoding.UTF8; Headers = new Dictionary @@ -28,6 +29,7 @@ public ServerResponse(HttpListenerResponse response) _response = response; } + public HttpListenerResponse NativeResponse { get; } public Dictionary Headers { get; } public Cookie[] Cookies { get; set; } public Encoding Encoding { get; set; }