forked from aspnet/AspNetWebStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpUnsortedRequest.cs
More file actions
54 lines (48 loc) · 1.74 KB
/
HttpUnsortedRequest.cs
File metadata and controls
54 lines (48 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Net.Http.Formatting.Parsers;
using System.Net.Http.Headers;
namespace System.Net.Http
{
/// <summary>
/// Represents the HTTP Request Line and header parameters parsed by <see cref="HttpRequestLineParser"/>
/// and <see cref="HttpRequestHeaderParser"/>.
/// </summary>
internal class HttpUnsortedRequest
{
/// <summary>
/// Initializes a new instance of the <see cref="HttpUnsortedRequest"/> class.
/// </summary>
public HttpUnsortedRequest()
{
// Collection of unsorted headers. Later we will sort it into the appropriate
// HttpContentHeaders, HttpRequestHeaders, and HttpResponseHeaders.
HttpHeaders = new HttpUnsortedHeaders();
}
/// <summary>
/// Gets or sets the HTTP method.
/// </summary>
/// <value>
/// The HTTP method.
/// </value>
public HttpMethod Method { get; set; }
/// <summary>
/// Gets or sets the HTTP request URI portion that is carried in the RequestLine (i.e the URI path + query).
/// </summary>
/// <value>
/// The request URI.
/// </value>
public string RequestUri { get; set; }
/// <summary>
/// Gets or sets the HTTP version.
/// </summary>
/// <value>
/// The HTTP version.
/// </value>
public Version Version { get; set; }
/// <summary>
/// Gets the unsorted HTTP request headers.
/// </summary>
public HttpHeaders HttpHeaders { get; private set; }
}
}