Update HttpRequest.cs

This commit is contained in:
uwaa 2024-11-22 07:04:02 +00:00
parent a0b2c9f9b1
commit 03ae4d8308

View file

@ -24,7 +24,7 @@ public class HttpRequest
/// <summary>
/// Additional paramters in the path of the request.
/// </summary>
public NameValueCollection? Query;
public NameValueCollection Query;
/// <summary>
/// HTTP header fields included in the request.
@ -46,11 +46,6 @@ public class HttpRequest
/// </summary>
public bool Valid => Method != HttpMethod.Any && Path.StartsWith('/');
internal HttpRequest()
{
Fields = new HttpFields();
}
public HttpRequest(HttpMethod method, string path, HttpContent? content = null) : this(method, path, new HttpFields(), content)
{
}