更新header key 定义
This commit is contained in:
parent
d6e86b64f7
commit
7e4a6f9f14
13
header.go
13
header.go
@ -24,3 +24,16 @@ var (
|
|||||||
HeaderKeyAccessControlExposeHeaders HttpHeader = "Access-Control-Expose-Headers" // 允许浏览器端能够获取相应的header值
|
HeaderKeyAccessControlExposeHeaders HttpHeader = "Access-Control-Expose-Headers" // 允许浏览器端能够获取相应的header值
|
||||||
HeaderKeyAccessControlMaxAge HttpHeader = "Access-Control-Max-Age" // 控制发送预检请求options的频率,单位 : 秒
|
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
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user