14 lines
638 B
C#
14 lines
638 B
C#
|
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>();
|
||
|
}
|