|
| 1 | +package httpext |
| 2 | + |
| 3 | +// HTTP Header keys |
| 4 | +const ( |
| 5 | + Age string = "Age" |
| 6 | + AltSCV string = "Alt-Svc" |
| 7 | + Accept string = "Accept" |
| 8 | + AcceptCharset string = "Accept-Charset" |
| 9 | + AcceptPatch string = "Accept-Patch" |
| 10 | + AcceptRanges string = "Accept-Ranges" |
| 11 | + AcceptedLanguage string = "Accept-Language" |
| 12 | + AcceptEncoding string = "Accept-Encoding" |
| 13 | + Authorization string = "Authorization" |
| 14 | + CrossOriginResourcePolicy string = "Cross-Origin-Resource-Policy" |
| 15 | + CacheControl string = "Cache-Control" |
| 16 | + Connection string = "Connection" |
| 17 | + ContentDisposition string = "Content-Disposition" |
| 18 | + ContentEncoding string = "Content-Encoding" |
| 19 | + ContentLength string = "Content-Length" |
| 20 | + ContentType string = "Content-Type" |
| 21 | + ContentLanguage string = "Content-Language" |
| 22 | + ContentLocation string = "Content-Location" |
| 23 | + ContentRange string = "Content-Range" |
| 24 | + Date string = "Date" |
| 25 | + DeltaBase string = "Delta-Base" |
| 26 | + ETag string = "ETag" |
| 27 | + Expires string = "Expires" |
| 28 | + Host string = "Host" |
| 29 | + IM string = "IM" |
| 30 | + IfMatch string = "If-Match" |
| 31 | + IfModifiedSince string = "If-Modified-Since" |
| 32 | + IfNoneMatch string = "If-None-Match" |
| 33 | + IfRange string = "If-Range" |
| 34 | + IfUnmodifiedSince string = "If-Unmodified-Since" |
| 35 | + KeepAlive string = "Keep-Alive" |
| 36 | + LastModified string = "Last-Modified" |
| 37 | + Link string = "Link" |
| 38 | + Pragma string = "Pragma" |
| 39 | + ProxyAuthenticate string = "Proxy-Authenticate" |
| 40 | + ProxyAuthorization string = "Proxy-Authorization" |
| 41 | + PublicKeyPins string = "Public-Key-Pins" |
| 42 | + RetryAfter string = "Retry-After" |
| 43 | + Referer string = "Referer" |
| 44 | + Server string = "Server" |
| 45 | + SetCookie string = "Set-Cookie" |
| 46 | + StrictTransportSecurity string = "Strict-Transport-Security" |
| 47 | + Trailer string = "Trailer" |
| 48 | + TK string = "Tk" |
| 49 | + TransferEncoding string = "Transfer-Encoding" |
| 50 | + Location string = "Location" |
| 51 | + Upgrade string = "Upgrade" |
| 52 | + Vary string = "Vary" |
| 53 | + Via string = "Via" |
| 54 | + Warning string = "Warning" |
| 55 | + WWWAuthenticate string = "WWW-Authenticate" |
| 56 | + XForwardedFor string = "X-Forwarded-For" |
| 57 | + XForwardedHost string = "X-Forwarded-Host" |
| 58 | + XForwardedProto string = "X-Forwarded-Proto" |
| 59 | + XRealIP string = "X-Real-Ip" |
| 60 | + XContentTypeOptions string = "X-Content-Type-Options" |
| 61 | + XFrameOptions string = "X-Frame-Options" |
| 62 | + XXSSProtection string = "X-XSS-Protection" |
| 63 | + XDNSPrefetchControl string = "X-DNS-Prefetch-Control" |
| 64 | + Allow string = "Allow" |
| 65 | + Origin string = "Origin" |
| 66 | + AccessControlAllowOrigin string = "Access-Control-Allow-Origin" |
| 67 | + AccessControlAllowCredentials string = "Access-Control-Allow-Credentials" |
| 68 | + AccessControlAllowHeaders string = "Access-Control-Allow-Headers" |
| 69 | + AccessControlAllowMethods string = "Access-Control-Allow-Methods" |
| 70 | + AccessControlExposeHeaders string = "Access-Control-Expose-Headers" |
| 71 | + AccessControlMaxAge string = "Access-Control-Max-Age" |
| 72 | + AccessControlRequestHeaders string = "Access-Control-Request-Headers" |
| 73 | + AccessControlRequestMethod string = "Access-Control-Request-Method" |
| 74 | + TimingAllowOrigin string = "Timing-Allow-Origin" |
| 75 | + UserAgent string = "User-Agent" |
| 76 | +) |
0 commit comments