// Copyright (c) Microsoft Corporation. All rights reserved. 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
{
///
/// Represents the HTTP Request Line and header parameters parsed by
/// and .
///
internal class HttpUnsortedRequest
{
///
/// Initializes a new instance of the class.
///
public HttpUnsortedRequest()
{
// Collection of unsorted headers. Later we will sort it into the appropriate
// HttpContentHeaders, HttpRequestHeaders, and HttpResponseHeaders.
HttpHeaders = new HttpUnsortedHeaders();
}
///
/// Gets or sets the HTTP method.
///
///
/// The HTTP method.
///
public HttpMethod Method { get; set; }
///
/// Gets or sets the HTTP request URI portion that is carried in the RequestLine (i.e the URI path + query).
///
///
/// The request URI.
///
public string RequestUri { get; set; }
///
/// Gets or sets the HTTP version.
///
///
/// The HTTP version.
///
public Version Version { get; set; }
///
/// Gets the unsorted HTTP request headers.
///
public HttpHeaders HttpHeaders { get; private set; }
}
}