diff --git a/header.go b/header.go index c661e45..55d772a 100644 --- a/header.go +++ b/header.go @@ -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 +)