//------------------------------------------------------------------------------ // 此代码版权(除特别声明或在XREF结尾的命名空间的代码)归作者本人若汝棋茗所有 // 源代码使用协议遵循本仓库的开源协议及附加协议,若本仓库没有设置,则按MIT开源协议授权 // CSDN博客:https://blog.csdn.net/qq_40374647 // 哔哩哔哩视频:https://space.bilibili.com/94253567 // Gitee源代码仓库:https://gitee.com/RRQM_Home // Github源代码仓库:https://github.com/RRQM // API首页:https://touchsocket.net/ // 交流QQ群:234762506 // 感谢您的下载和使用 //------------------------------------------------------------------------------ using System.ComponentModel; namespace TouchSocket.Http { /// /// 请求头枚举 /// public enum HttpHeaders : byte { /// /// Cache-Control 标头,指定请求/响应链上所有缓存控制机制必须服从的指令。 /// [Description("Cache-Control")] CacheControl = 0, /// /// Connection 标头,指定特定连接需要的选项。 /// [Description("Connection")] Connection = 1, /// /// Date 标头,指定开始创建请求的日期和时间。 /// [Description("Date")] Date = 2, /// /// Keep-Alive 标头,指定用以维护持久性连接的参数。 /// [Description("Keep-Alive")] KeepAlive = 3, /// /// Pragma 标头,指定可应用于请求/响应链上的任何代理的特定于实现的指令。 /// [Description("Pragma")] Pragma = 4, /// /// Trailer 标头,指定标头字段显示在以 chunked 传输编码方式编码的消息的尾部。 /// [Description("Trailer")] Trailer = 5, /// /// Transfer-Encoding 标头,指定对消息正文应用的转换的类型(如果有)。 /// [Description("Transfer-Encoding")] TransferEncoding = 6, /// /// Upgrade 标头,指定客户端支持的附加通信协议。 /// [Description("Upgrade")] Upgrade = 7, /// /// Via 标头,指定网关和代理程序要使用的中间协议。 /// [Description("Via")] Via = 8, /// /// Warning 标头,指定关于可能未在消息中反映的消息的状态或转换的附加信息。 /// [Description("Warning")] Warning = 9, /// /// Allow 标头,指定支持的 HTTP 方法集。 /// [Description("Allow")] Allow = 10, /// /// Content-Length 标头,指定伴随正文数据的长度(以字节为单位)。 /// [Description("Content-Length")] ContentLength = 11, /// /// Content-Type 标头,指定伴随正文数据的 MIME 类型。 /// [Description("Content-Type")] ContentType = 12, /// /// Content-Encoding 标头,指定已应用于伴随正文数据的编码。 /// [Description("Content-Encoding")] ContentEncoding = 13, /// /// Content-Langauge 标头,指定伴随正文数据的自然语言。 /// [Description("Content-Langauge")] ContentLanguage = 14, /// /// Content-Location 标头,指定可从其中获得伴随正文的 URI。 /// [Description("Content-Location")] ContentLocation = 15, /// /// Content-MD5 标头,指定伴随正文数据的 MD5 摘要,用于提供端到端消息完整性检查。 /// [Description("Content-MD5")] ContentMd5 = 16, /// /// Content-Range 标头,指定在完整正文中应用伴随部分正文数据的位置。 /// [Description("Content-Range")] ContentRange = 17, /// /// Expires 标头,指定日期和时间,在此之后伴随的正文数据应视为陈旧的。 /// [Description("Expires")] Expires = 18, /// /// Last-Modified 标头,指定上次修改伴随的正文数据的日期和时间。 /// [Description("Last-Modified")] LastModified = 19, /// /// Accept 标头,指定响应可接受的 MIME 类型。 /// [Description("Accept")] Accept = 20, /// /// Accept-Charset 标头,指定响应可接受的字符集。 /// [Description("Accept-Charset")] AcceptCharset = 21, /// /// Accept-Encoding 标头,指定响应可接受的内容编码。 /// [Description("Accept-Encoding")] AcceptEncoding = 22, /// /// Accept-Langauge 标头,指定响应首选的自然语言。 /// [Description("Accept-Langauge")] AcceptLanguage = 23, /// /// Authorization 标头,指定客户端为向服务器验证自身身份而出示的凭据。 /// [Description("Authorization")] Authorization = 24, /// /// Cookie 标头,指定向服务器提供的 Cookie 数据。 /// [Description("Cookie")] Cookie = 25, /// /// Expect 标头,指定客户端要求的特定服务器行为。 /// [Description("Expect")] Expect = 26, /// /// From 标头,指定控制请求用户代理的用户的 Internet 电子邮件地址。 /// [Description("From")] From = 27, /// /// Host 标头,指定所请求资源的主机名和端口号。 /// [Description("Host")] Host = 28, /// /// If-Match 标头,指定仅当客户端的指示资源的缓存副本是最新的时,才执行请求的操作。 /// [Description("If-Match")] IfMatch = 29, /// /// If-Modified-Since 标头,指定仅当自指示的数据和时间之后修改了请求的资源时,才执行请求的操作。 /// [Description("If-Modified-Since")] IfModifiedSince = 30, /// /// If-None-Match 标头,指定仅当客户端的指示资源的缓存副本都不是最新的时,才执行请求的操作。 /// [Description("If-None-Match")] IfNoneMatch = 31, /// /// If-Range 标头,指定如果客户端的缓存副本是最新的,仅发送指定范围的请求资源。 /// [Description("If-Range")] IfRange = 32, /// /// If-Unmodified-Since 标头,指定仅当自指示的日期和时间之后修改了请求的资源时,才执行请求的操作。 /// [Description("If-Unmodified-Since")] IfUnmodifiedSince = 33, /// /// Max-Forwards 标头,指定一个整数,表示此请求还可转发的次数。 /// [Description("Max-Forwards")] MaxForwards = 34, /// /// Proxy-Authorization 标头,指定客户端为向代理验证自身身份而出示的凭据。 /// [Description("Proxy-Authorization")] ProxyAuthorization = 35, /// /// Referer 标头,指定从中获得请求 URI 的资源的 URI。 /// [Description("Referer")] Referer = 36, /// /// Range 标头,指定代替整个响应返回的客户端请求的响应的子范围。 /// [Description("Range")] Range = 37, /// /// TE 标头,指定响应可接受的传输编码方式。 /// [Description("TE")] Te = 38, /// /// Translate 标头,与 WebDAV 功能一起使用的 HTTP 规范的 Microsoft 扩展。 /// [Description("Translate")] Translate = 39, /// /// User-Agent 标头,指定有关客户端代理的信息。 /// [Description("User-Agent")] UserAgent = 40, /// /// Accept-Ranges 标头,指定服务器接受的范围。 /// [Description("Accept-Ranges")] AcceptRanges = 41, /// /// Age 标头,指定自起始服务器生成响应以来的时间长度(以秒为单位)。 /// [Description("Age")] Age = 42, /// /// Etag 标头,指定请求的变量的当前值。 /// [Description("Etag")] ETag = 43, /// /// Location 标头,指定为获取请求的资源而将客户端重定向到的 URI。 /// [Description("Location")] Location = 44, /// /// Proxy-Authenticate 标头,指定客户端必须对代理验证其自身。 /// [Description("Proxy-Authenticate")] ProxyAuthenticate = 45, /// /// Retry-After 标头,指定某个时间(以秒为单位)或日期和时间,在此时间之后客户端可以重试其请求。 /// [Description("Retry-After")] RetryAfter = 46, /// /// Server 标头,指定关于起始服务器代理的信息。 /// [Description("Server")] Server = 47, /// /// Set-Cookie 标头,指定提供给客户端的 Cookie 数据。 /// [Description("Set-Cookie")] SetCookie = 48, /// /// Vary 标头,指定用于确定缓存的响应是否为新响应的请求标头。 /// [Description("Vary")] Vary = 49, /// /// WWW-Authenticate 标头,指定客户端必须对服务器验证其自身。 /// [Description("WWW-Authenticate")] WwwAuthenticate = 50, /// /// Origin。 /// [Description("Origin")] Origin = 51, /// /// Content-Disposition /// [Description("Content-Disposition")] ContentDisposition = 52 } }