12 lines
534 B
C#
12 lines
534 B
C#
|
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;
|
||
|
}
|