Skip to content

Commit

Permalink
HTTP.ServerResponse -> impl native response object
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed Jun 27, 2024
1 parent 37928ed commit 7edf0f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/http/partials/Server/HTTP.ServerResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ internal class ServerResponse : IHTTP.ServerResponse

public ServerResponse(HttpListenerResponse response)
{
NativeResponse = response;
IsOpened = true;
Encoding = Encoding.UTF8;
Headers = new Dictionary<string, string>
Expand All @@ -28,6 +29,7 @@ public ServerResponse(HttpListenerResponse response)
_response = response;
}

public HttpListenerResponse NativeResponse { get; }
public Dictionary<string, string> Headers { get; }
public Cookie[] Cookies { get; set; }
public Encoding Encoding { get; set; }
Expand Down

0 comments on commit 7edf0f3

Please sign in to comment.