Innovenergy_trunk/csharp/lib/WebServer/HttpRequest.cs

14 lines
638 B
C#
Raw Normal View History

2023-02-16 12:57:06 +00:00
using System.Net;
using Flurl;
namespace InnovEnergy.Lib.WebServer;
public record HttpRequest
{
public HttpMethod Method { get; init; } = HttpMethod.Unknown;
public IEnumerable<HttpHeader> Headers { get; init; } = Enumerable.Empty<HttpHeader>();
public IEnumerable<Cookie> Cookies { get; init; } = Enumerable.Empty<Cookie>();
public IPEndPoint RemoteEndPoint { get; init; } = Default.EndPoint;
public Url Url { get; init; } = Default.Url;
public IEnumerable<Byte> Content { get; init; } = Enumerable.Empty<Byte>();
}