HttpAbstractions 341 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. commit a6bdb9b1ec6ed99978a508e71a7f131be7e4d9fb
  2. Author: Nate Barbettini <[email protected]>
  3. Date: Fri Apr 6 08:09:48 2018 -0700
  4. Fix typos in code documentation (#1012)
  5. * Fix typos in code documentation
  6. * Add missing detail to code documentation
  7. diff --git a/src/Microsoft.AspNetCore.Http.Abstractions/HttpRequest.cs b/src/Microsoft.AspNetCore.Http.Abstractions/HttpRequest.cs
  8. index 8df33f62ad7..a4337b77664 100644
  9. --- a/src/Microsoft.AspNetCore.Http.Abstractions/HttpRequest.cs
  10. +++ b/src/Microsoft.AspNetCore.Http.Abstractions/HttpRequest.cs
  11. @@ -18,13 +18,13 @@ namespace Microsoft.AspNetCore.Http
  12. public abstract HttpContext HttpContext { get; }
  13. /// <summary>
  14. - /// Gets or set the HTTP method.
  15. + /// Gets or sets the HTTP method.
  16. /// </summary>
  17. /// <returns>The HTTP method.</returns>
  18. public abstract string Method { get; set; }
  19. /// <summary>
  20. - /// Gets or set the HTTP request scheme.
  21. + /// Gets or sets the HTTP request scheme.
  22. /// </summary>
  23. /// <returns>The HTTP request scheme.</returns>
  24. public abstract string Scheme { get; set; }
  25. @@ -36,25 +36,25 @@ namespace Microsoft.AspNetCore.Http
  26. public abstract bool IsHttps { get; set; }
  27. /// <summary>
  28. - /// Gets or set the Host header. May include the port.
  29. + /// Gets or sets the Host header. May include the port.
  30. /// </summary>
  31. /// <return>The Host header.</return>
  32. public abstract HostString Host { get; set; }
  33. /// <summary>
  34. - /// Gets or set the RequestPathBase.
  35. + /// Gets or sets the RequestPathBase.
  36. /// </summary>
  37. /// <returns>The RequestPathBase.</returns>
  38. public abstract PathString PathBase { get; set; }
  39. /// <summary>
  40. - /// Gets or set the request path from RequestPath.
  41. + /// Gets or sets the request path from RequestPath.
  42. /// </summary>
  43. /// <returns>The request path from RequestPath.</returns>
  44. public abstract PathString Path { get; set; }
  45. /// <summary>
  46. - /// Gets or set the raw query string used to create the query collection in Request.Query.
  47. + /// Gets or sets the raw query string used to create the query collection in Request.Query.
  48. /// </summary>
  49. /// <returns>The raw query string.</returns>
  50. public abstract QueryString QueryString { get; set; }
  51. @@ -66,7 +66,7 @@ namespace Microsoft.AspNetCore.Http
  52. public abstract IQueryCollection Query { get; set; }
  53. /// <summary>
  54. - /// Gets or set the RequestProtocol.
  55. + /// Gets or sets the RequestProtocol.
  56. /// </summary>
  57. /// <returns>The RequestProtocol.</returns>
  58. public abstract string Protocol { get; set; }
  59. @@ -84,8 +84,9 @@ namespace Microsoft.AspNetCore.Http
  60. public abstract IRequestCookieCollection Cookies { get; set; }
  61. /// <summary>
  62. - /// Gets or sets the Content-Length header
  63. + /// Gets or sets the Content-Length header.
  64. /// </summary>
  65. + /// <returns>The value of the Content-Length header, if any.</returns>
  66. public abstract long? ContentLength { get; set; }
  67. /// <summary>
  68. @@ -95,14 +96,15 @@ namespace Microsoft.AspNetCore.Http
  69. public abstract string ContentType { get; set; }
  70. /// <summary>
  71. - /// Gets or set the RequestBody Stream.
  72. + /// Gets or sets the RequestBody Stream.
  73. /// </summary>
  74. /// <returns>The RequestBody Stream.</returns>
  75. public abstract Stream Body { get; set; }
  76. /// <summary>
  77. - /// Checks the content-type header for form types.
  78. + /// Checks the Content-Type header for form types.
  79. /// </summary>
  80. + /// <returns>true if the Content-Type header represents a form content type; otherwise, false.</returns>
  81. public abstract bool HasFormContentType { get; }
  82. /// <summary>