// 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 Status Line and header parameters parsed by /// and . /// internal class HttpUnsortedResponse { /// /// Initializes a new instance of the class. /// public HttpUnsortedResponse() { // Collection of unsorted headers. Later we will sort it into the appropriate // HttpContentHeaders, HttpRequestHeaders, and HttpResponseHeaders. HttpHeaders = new HttpUnsortedHeaders(); } /// /// Gets or sets the HTTP version. /// /// /// The HTTP version. /// public Version Version { get; set; } /// /// Gets or sets the /// /// /// The HTTP status code /// public HttpStatusCode StatusCode { get; set; } /// /// Gets or sets the HTTP reason phrase /// /// /// The response reason phrase /// public string ReasonPhrase { get; set; } /// /// Gets the unsorted HTTP request headers. /// public HttpHeaders HttpHeaders { get; private set; } } }