更新header key 定义

This commit is contained in:
白茶清欢 2025-03-28 12:03:04 +08:00
parent d6e86b64f7
commit 7e4a6f9f14

View File

@ -24,3 +24,16 @@ var (
HeaderKeyAccessControlExposeHeaders HttpHeader = "Access-Control-Expose-Headers" // 允许浏览器端能够获取相应的header值
HeaderKeyAccessControlMaxAge HttpHeader = "Access-Control-Max-Age" // 控制发送预检请求options的频率单位 : 秒
)
var (
HeaderKeyContentType HttpHeader = "Content-Type" // 请求头中Content-Type的key
HeaderKeyReferer HttpHeader = "Referer" // 请求头中Referer的key
HeaderKeyUserAgent HttpHeader = "User-Agent" // 请求头中User-Agent的key
HeaderKeyAccept HttpHeader = "Accept" // accept
HeaderKeyAcceptEncoding HttpHeader = "Accept-Encoding" // accept-encoding
HeaderKeyAcceptLanguage HttpHeader = "Accept-Language" // accept-language
HeaderKeyAuthorization HttpHeader = "Authorization" // authorization
HeaderKeyCookie HttpHeader = "Cookie" // cookie
HeaderKeyOrigin HttpHeader = "Origin" // origin
HeaderKeyHost HttpHeader = "Host" // host
)