HttpResponseHeader.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. #region License
  2. /*
  3. * HttpResponseHeader.cs
  4. *
  5. * This code is derived from HttpResponseHeader.cs (System.Net) of Mono
  6. * (http://www.mono-project.com).
  7. *
  8. * The MIT License
  9. *
  10. * Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
  11. * Copyright (c) 2014-2020 sta.blockhead
  12. *
  13. * Permission is hereby granted, free of charge, to any person obtaining a copy
  14. * of this software and associated documentation files (the "Software"), to deal
  15. * in the Software without restriction, including without limitation the rights
  16. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  17. * copies of the Software, and to permit persons to whom the Software is
  18. * furnished to do so, subject to the following conditions:
  19. *
  20. * The above copyright notice and this permission notice shall be included in
  21. * all copies or substantial portions of the Software.
  22. *
  23. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  24. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  25. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  26. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  27. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  28. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  29. * THE SOFTWARE.
  30. */
  31. #endregion
  32. #region Authors
  33. /*
  34. * Authors:
  35. * - Gonzalo Paniagua Javier <gonzalo@novell.com>
  36. */
  37. #endregion
  38. namespace WebSocketSharp.Net
  39. {
  40. /// <summary>
  41. /// Indicates the HTTP header that can be specified in a server response.
  42. /// </summary>
  43. /// <remarks>
  44. /// The headers of this enumeration are defined in
  45. /// <see href="http://tools.ietf.org/html/rfc2616#section-14">RFC 2616</see> or
  46. /// <see href="http://tools.ietf.org/html/rfc6455#section-11.3">RFC 6455</see>.
  47. /// </remarks>
  48. public enum HttpResponseHeader
  49. {
  50. /// <summary>
  51. /// Indicates the Cache-Control header.
  52. /// </summary>
  53. CacheControl,
  54. /// <summary>
  55. /// Indicates the Connection header.
  56. /// </summary>
  57. Connection,
  58. /// <summary>
  59. /// Indicates the Date header.
  60. /// </summary>
  61. Date,
  62. /// <summary>
  63. /// Indicates the Keep-Alive header.
  64. /// </summary>
  65. KeepAlive,
  66. /// <summary>
  67. /// Indicates the Pragma header.
  68. /// </summary>
  69. Pragma,
  70. /// <summary>
  71. /// Indicates the Trailer header.
  72. /// </summary>
  73. Trailer,
  74. /// <summary>
  75. /// Indicates the Transfer-Encoding header.
  76. /// </summary>
  77. TransferEncoding,
  78. /// <summary>
  79. /// Indicates the Upgrade header.
  80. /// </summary>
  81. Upgrade,
  82. /// <summary>
  83. /// Indicates the Via header.
  84. /// </summary>
  85. Via,
  86. /// <summary>
  87. /// Indicates the Warning header.
  88. /// </summary>
  89. Warning,
  90. /// <summary>
  91. /// Indicates the Allow header.
  92. /// </summary>
  93. Allow,
  94. /// <summary>
  95. /// Indicates the Content-Length header.
  96. /// </summary>
  97. ContentLength,
  98. /// <summary>
  99. /// Indicates the Content-Type header.
  100. /// </summary>
  101. ContentType,
  102. /// <summary>
  103. /// Indicates the Content-Encoding header.
  104. /// </summary>
  105. ContentEncoding,
  106. /// <summary>
  107. /// Indicates the Content-Language header.
  108. /// </summary>
  109. ContentLanguage,
  110. /// <summary>
  111. /// Indicates the Content-Location header.
  112. /// </summary>
  113. ContentLocation,
  114. /// <summary>
  115. /// Indicates the Content-MD5 header.
  116. /// </summary>
  117. ContentMd5,
  118. /// <summary>
  119. /// Indicates the Content-Range header.
  120. /// </summary>
  121. ContentRange,
  122. /// <summary>
  123. /// Indicates the Expires header.
  124. /// </summary>
  125. Expires,
  126. /// <summary>
  127. /// Indicates the Last-Modified header.
  128. /// </summary>
  129. LastModified,
  130. /// <summary>
  131. /// Indicates the Accept-Ranges header.
  132. /// </summary>
  133. AcceptRanges,
  134. /// <summary>
  135. /// Indicates the Age header.
  136. /// </summary>
  137. Age,
  138. /// <summary>
  139. /// Indicates the ETag header.
  140. /// </summary>
  141. ETag,
  142. /// <summary>
  143. /// Indicates the Location header.
  144. /// </summary>
  145. Location,
  146. /// <summary>
  147. /// Indicates the Proxy-Authenticate header.
  148. /// </summary>
  149. ProxyAuthenticate,
  150. /// <summary>
  151. /// Indicates the Retry-After header.
  152. /// </summary>
  153. RetryAfter,
  154. /// <summary>
  155. /// Indicates the Server header.
  156. /// </summary>
  157. Server,
  158. /// <summary>
  159. /// Indicates the Set-Cookie header.
  160. /// </summary>
  161. SetCookie,
  162. /// <summary>
  163. /// Indicates the Vary header.
  164. /// </summary>
  165. Vary,
  166. /// <summary>
  167. /// Indicates the WWW-Authenticate header.
  168. /// </summary>
  169. WwwAuthenticate,
  170. /// <summary>
  171. /// Indicates the Sec-WebSocket-Extensions header.
  172. /// </summary>
  173. SecWebSocketExtensions,
  174. /// <summary>
  175. /// Indicates the Sec-WebSocket-Accept header.
  176. /// </summary>
  177. SecWebSocketAccept,
  178. /// <summary>
  179. /// Indicates the Sec-WebSocket-Protocol header.
  180. /// </summary>
  181. SecWebSocketProtocol,
  182. /// <summary>
  183. /// Indicates the Sec-WebSocket-Version header.
  184. /// </summary>
  185. SecWebSocketVersion
  186. }
  187. }