Skip to content

Commit

Permalink
remove StatusCode from HTTP.ServerRequest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed Jun 23, 2024
1 parent d79f947 commit d15737f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions src/http/interfaces/IHTTP.ServerRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,6 @@ public interface ServerRequest
/// Request Enctype
/// </summary>
HTTP.Enctype Enctype { get; }


/// <summary>
/// Http Status Code. <br />
/// if value is -1 mean: (not applicable on context).
/// </summary>
int Status { get; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ internal ServerRequest(HttpListenerRequest request)
}

{
Status = -1;

Method = new HttpMethod(request.HttpMethod);

Url = request.Url.AbsoluteUri;
Expand Down Expand Up @@ -98,9 +96,6 @@ internal ServerRequest(ClientWebSocket ws, Uri uri, Dictionary<string, string> h
}

{
// Not applicable
Status = -1;

// Not applicable
Method = HttpMethod.Get;

Expand Down Expand Up @@ -173,8 +168,6 @@ internal ServerRequest(HttpResponseMessage message)
}

{
Status = (int)message.StatusCode;

Method = message.RequestMessage.Method;

Url = uri.AbsoluteUri;
Expand Down Expand Up @@ -216,7 +209,6 @@ internal ServerRequest(HttpResponseMessage message)
public bool IsEncrypted { get; }
public IHTTP.Body Body { get; }
public Enctype Enctype => Body.Enctype;
public int Status { get; }

/// <summary>
/// Set queries from an exist uri
Expand Down

0 comments on commit d15737f

Please sign in to comment.