1 Star 0 Fork 0

曾广宇/mxx-core-v2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
header_name.go 6.95 KB
一键复制 编辑 原始数据 按行查看 历史
曾广宇 提交于 2021-09-17 15:52 . 1
package mutil
var HeaderNames = &headerName{
Accept: "accept",
AcceptCharset: "accept-charset",
AcceptEncoding: "accept-encoding",
AcceptLanguage: "accept-language",
AcceptRanges: "accept-ranges",
AcceptPatch: "accept-patch",
AcceptControlAllowCredentials: "access-control-allow-credentials",
AcceptControlAllowHeaders: "access-control-allow-headers",
AcceptControlAllowMethods: "access-control-allow-methods",
AcceptControlAllowOrigin: "access-control-allow-origin",
AcceptControlExposeHeaders: "access-control-expose-headers",
AcceptControlMaxAge: "access-control-max-age",
AcceptControlRequestHeaders: "access-control-request-headers",
AcceptControlRequestMethod: "access-control-request-method",
Age: "age",
Allow: "allow",
Authorization: "authorization",
CacheControl: "cache-control",
Connection: "connection",
ContentEncoding: "content-encoding",
ContentLanguage: "content-language",
ContentLength: "content-length",
ContentLocation: "content-location",
ContentTransferEncoding: "content-transfer-encoding",
ContentDisposition: "content-disposition",
ContentMd5: "content-md5",
ContentRange: "content-range",
ContentSecurityPolicy: "content-security-policy",
ContentType: "content-type",
Cookie: "cookie",
Date: "date",
Dnt: "dnt",
Etag: "etag",
Expect: "expect",
Expires: "expires",
From: "from",
Host: "host",
IfMatch: "if-match",
IfNoneMatch: "if-none-match",
IfRange: "if-range",
IfUnmodifiedSince: "if-unmodified-since",
KeepAlive: "keep-alive",
LastModified: "last-modified",
Location: "location",
MaxForwards: "max-forwards",
Origin: "origin",
Pragma: "pragma",
ProxyAuthenticate: "proxy-authenticate",
ProxyAuthorization: "proxy-authorization",
ProxyConnection: "proxy-connection",
Range: "range",
Referer: "referer",
RetryAfter: "retry-after",
SecWebsocketKey1: "sec-websocket-key1",
SecWebsocketKey2: "sec-websocket-key2",
SecWebsocketLocation: "sec-websocket-location",
SecWebsocketOrigin: "sec-websocket-origin",
SecWebsocketProtocol: "sec-websocket-protocol",
SecWebsocketVersion: "sec-websocket-version",
SecWebsocketKey: "sec-websocket-key",
SecWebsocketAccept: "sec-websocket-accept",
SecWebsocketExtensions: "sec-websocket-extensions",
Server: "server",
SetCookie: "set-cookie",
SetCookie2: "set-cookie2",
Te: "te",
Trailer: "trailer",
TrailerEncoding: "transfer-encoding",
Upgrade: "upgrade",
UpgradeInsecureRequests: "upgrade-insecure-requests",
UserAgent: "user-agent",
Vary: "vary",
Via: "via",
Warning: "warning",
WebsocketLocation: "websocket-location",
WebsocketOrigin: "websocket-origin",
WebsocketProtocol: "websocket-protocol",
WwwAuthenticate: "www-authenticate",
XFrameOptions: "x-frame-options",
XRequestedWith: "x-requested-with",
}
type headerName struct {
Accept string
AcceptCharset string
AcceptEncoding string
AcceptLanguage string
AcceptRanges string
AcceptPatch string
AcceptControlAllowCredentials string
AcceptControlAllowHeaders string
AcceptControlAllowMethods string
AcceptControlAllowOrigin string
AcceptControlExposeHeaders string
AcceptControlMaxAge string
AcceptControlRequestHeaders string
AcceptControlRequestMethod string
Age string
Allow string
Authorization string
CacheControl string
Connection string
ContentEncoding string
ContentLanguage string
ContentLength string
ContentLocation string
ContentTransferEncoding string
ContentDisposition string
ContentMd5 string
ContentRange string
ContentSecurityPolicy string
ContentType string
Cookie string
Date string
Dnt string
Etag string
Expect string
Expires string
From string
Host string
IfMatch string
IfNoneMatch string
IfRange string
IfUnmodifiedSince string
KeepAlive string
LastModified string
Location string
MaxForwards string
Origin string
Pragma string
ProxyAuthenticate string
ProxyAuthorization string
ProxyConnection string
Range string
Referer string
RetryAfter string
SecWebsocketKey1 string
SecWebsocketKey2 string
SecWebsocketLocation string
SecWebsocketOrigin string
SecWebsocketProtocol string
SecWebsocketVersion string
SecWebsocketKey string
SecWebsocketAccept string
SecWebsocketExtensions string
Server string
SetCookie string
SetCookie2 string
Te string
Trailer string
TrailerEncoding string
Upgrade string
UpgradeInsecureRequests string
UserAgent string
Vary string
Via string
Warning string
WebsocketLocation string
WebsocketOrigin string
WebsocketProtocol string
WwwAuthenticate string
XFrameOptions string
XRequestedWith string
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dennis-mxx/mxx-core-v2.git
git@gitee.com:dennis-mxx/mxx-core-v2.git
dennis-mxx
mxx-core-v2
mxx-core-v2
v0.1.1

搜索帮助

0d507c66 1850385 C8b1a773 1850385