Innovenergy_trunk/csharp/Lib/WebServer/HttpResponse.cs

12 lines
534 B
C#
Raw Normal View History

2023-02-16 12:57:06 +00:00
using System.Net;
namespace InnovEnergy.Lib.WebServer;
public record HttpResponse
{
public ContentType ContentType { get; init; } = ContentType.ApplicationOctetStream;
public IEnumerable<HttpHeader> Headers { get; init; } = Enumerable.Empty<HttpHeader>();
public IEnumerable<Cookie> Cookies { get; init; } = Enumerable.Empty<Cookie>();
public IEnumerable<Byte> Content { get; init; } = Enumerable.Empty<Byte>();
public UInt16 StatusCode { get; init; } = 200;
}