PageRenderTime 44ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. // <copyright>
  2. // Copyright (c) Microsoft Corporation. All rights reserved.
  3. // </copyright>
  4. namespace System.Net.Http
  5. {
  6. using System;
  7. using System.Net.Http.Headers;
  8. /// <summary>
  9. /// Represents the HTTP Status Line and header parameters parsed by <see cref="HttpStatusLineParser"/>
  10. /// and <see cref="HttpResponseHeaderParser"/>.
  11. /// </summary>
  12. internal class HttpUnsortedResponse
  13. {
  14. /// <summary>
  15. /// Initializes a new instance of the <see cref="HttpUnsortedRequest"/> class.
  16. /// </summary>
  17. public HttpUnsortedResponse()
  18. {
  19. // Collection of unsorted headers. Later we will sort it into the appropriate
  20. // HttpContentHeaders, HttpRequestHeaders, and HttpResponseHeaders.
  21. this.HttpHeaders = new HttpUnsortedHeaders();
  22. }
  23. /// <summary>
  24. /// Gets or sets the HTTP version.
  25. /// </summary>
  26. /// <value>
  27. /// The HTTP version.
  28. /// </value>
  29. public Version Version { get; set; }
  30. /// <summary>
  31. /// Gets or sets the <see cref="HttpStatusCode"/>
  32. /// </summary>
  33. /// <value>
  34. /// The HTTP status code
  35. /// </value>
  36. public HttpStatusCode StatusCode { get; set; }
  37. /// <summary>
  38. /// Gets or sets the HTTP reason phrase
  39. /// </summary>
  40. /// <value>
  41. /// The response reason phrase
  42. /// </value>
  43. public string ReasonPhrase { get; set; }
  44. /// <summary>
  45. /// Gets the unsorted HTTP request headers.
  46. /// </summary>
  47. public HttpHeaders HttpHeaders { get; private set; }
  48. }
  49. }