/WCFWebApi/src/Microsoft.Net.Http.Formatting/System/Net/Http/HttpUnsortedResponse.cs
C# | 55 lines | 16 code | 6 blank | 33 comment | 0 complexity | 47fa3803ec046dc3e610e78b4cb2268b MD5 | raw file
Possible License(s): CC-BY-SA-3.0, Apache-2.0
- // <copyright>
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // </copyright>
-
- namespace System.Net.Http
- {
- using System;
- using System.Net.Http.Headers;
-
- /// <summary>
- /// Represents the HTTP Status Line and header parameters parsed by <see cref="HttpStatusLineParser"/>
- /// and <see cref="HttpResponseHeaderParser"/>.
- /// </summary>
- internal class HttpUnsortedResponse
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="HttpUnsortedRequest"/> class.
- /// </summary>
- public HttpUnsortedResponse()
- {
- // Collection of unsorted headers. Later we will sort it into the appropriate
- // HttpContentHeaders, HttpRequestHeaders, and HttpResponseHeaders.
- this.HttpHeaders = new HttpUnsortedHeaders();
- }
-
- /// <summary>
- /// Gets or sets the HTTP version.
- /// </summary>
- /// <value>
- /// The HTTP version.
- /// </value>
- public Version Version { get; set; }
-
- /// <summary>
- /// Gets or sets the <see cref="HttpStatusCode"/>
- /// </summary>
- /// <value>
- /// The HTTP status code
- /// </value>
- public HttpStatusCode StatusCode { get; set; }
-
- /// <summary>
- /// Gets or sets the HTTP reason phrase
- /// </summary>
- /// <value>
- /// The response reason phrase
- /// </value>
- public string ReasonPhrase { get; set; }
-
- /// <summary>
- /// Gets the unsorted HTTP request headers.
- /// </summary>
- public HttpHeaders HttpHeaders { get; private set; }
- }
- }