PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/WCFWebApi/src/Microsoft.Net.Http.Formatting/System/Net/Http/HttpUnsortedRequest.cs

#
C# | 55 lines | 16 code | 6 blank | 33 comment | 0 complexity | d6a29acc73fb61245d847bd6ed8e6b71 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 Request Line and header parameters parsed by <see cref="HttpRequestLineParser"/>
  10. /// and <see cref="HttpRequestHeaderParser"/>.
  11. /// </summary>
  12. internal class HttpUnsortedRequest
  13. {
  14. /// <summary>
  15. /// Initializes a new instance of the <see cref="HttpUnsortedRequest"/> class.
  16. /// </summary>
  17. public HttpUnsortedRequest()
  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 method.
  25. /// </summary>
  26. /// <value>
  27. /// The HTTP method.
  28. /// </value>
  29. public HttpMethod Method { get; set; }
  30. /// <summary>
  31. /// Gets or sets the HTTP request URI portion that is carried in the RequestLine (i.e the URI path + query).
  32. /// </summary>
  33. /// <value>
  34. /// The request URI.
  35. /// </value>
  36. public string RequestUri { get; set; }
  37. /// <summary>
  38. /// Gets or sets the HTTP version.
  39. /// </summary>
  40. /// <value>
  41. /// The HTTP version.
  42. /// </value>
  43. public Version Version { get; set; }
  44. /// <summary>
  45. /// Gets the unsorted HTTP request headers.
  46. /// </summary>
  47. public HttpHeaders HttpHeaders { get; private set; }
  48. }
  49. }