From 7edf0f34aab92ce5cd7d8218c55aedffb89c29e1 Mon Sep 17 00:00:00 2001 From: "Alecio Furanze (Ale)" Date: Thu, 27 Jun 2024 14:04:00 +0200 Subject: [PATCH] HTTP.ServerResponse -> impl native response object --- src/http/partials/Server/HTTP.ServerResponse.cs | 2 ++ 1 file changed, 2 insertions(+) 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; }