1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-23 22:11:10 +02:00
Files
imgproxy/httpheaders/headers.go
2025-10-29 20:51:00 +06:00

80 lines
3.7 KiB
Go

// Inspired by https://github.com/mattrobenolt/go-httpheaders
// Thanks, Matt Robenolt!
package httpheaders
const (
Accept = "Accept"
AcceptCharset = "Accept-Charset"
AcceptEncoding = "Accept-Encoding"
AcceptLanguage = "Accept-Language"
AcceptRanges = "Accept-Ranges"
AccessControlAllowCredentials = "Access-Control-Allow-Credentials"
AccessControlAllowHeaders = "Access-Control-Allow-Headers"
AccessControlAllowMethods = "Access-Control-Allow-Methods"
AccessControlAllowOrigin = "Access-Control-Allow-Origin"
AccessControlMaxAge = "Access-Control-Max-Age"
Age = "Age"
AltSvc = "Alt-Svc"
Authorization = "Authorization"
CacheControl = "Cache-Control"
CFConnectingIP = "CF-Connecting-IP"
Connection = "Connection"
ContentDisposition = "Content-Disposition"
ContentEncoding = "Content-Encoding"
ContentLanguage = "Content-Language"
ContentLength = "Content-Length"
ContentRange = "Content-Range"
ContentSecurityPolicy = "Content-Security-Policy"
ContentSecurityPolicyReportOnly = "Content-Security-Policy-Report-Only"
ContentType = "Content-Type"
Cookie = "Cookie"
Date = "Date"
Dnt = "Dnt"
Dpr = "Dpr"
Etag = "Etag"
Expect = "Expect"
ExpectCt = "Expect-Ct"
Expires = "Expires"
Forwarded = "Forwarded"
Host = "Host"
IfMatch = "If-Match"
IfModifiedSince = "If-Modified-Since"
IfNoneMatch = "If-None-Match"
IfUnmodifiedSince = "If-Unmodified-Since"
KeepAlive = "Keep-Alive"
LastModified = "Last-Modified"
Link = "Link"
Location = "Location"
Origin = "Origin"
Pragma = "Pragma"
Range = "Range"
Referer = "Referer"
RequestId = "Request-Id"
RetryAfter = "Retry-After"
SecChDpr = "Sec-Ch-Dpr"
SecChWidth = "Sec-Ch-Width"
Server = "Server"
SetCookie = "Set-Cookie"
StrictTransportSecurity = "Strict-Transport-Security"
Upgrade = "Upgrade"
UserAgent = "User-Agent"
Vary = "Vary"
Via = "Via"
Width = "Width"
WwwAuthenticate = "Www-Authenticate"
XAmznRequestContextHeader = "x-amzn-request-context"
XContentTypeOptions = "X-Content-Type-Options"
XForwardedFor = "X-Forwarded-For"
XForwardedHost = "X-Forwarded-Host"
XForwardedPort = "X-Forwarded-Port"
XForwardedProto = "X-Forwarded-Proto"
XFrameOptions = "X-Frame-Options"
XOriginWidth = "X-Origin-Width"
XOriginHeight = "X-Origin-Height"
XRealIP = "X-Real-IP"
XRequestID = "X-Request-ID"
XResultWidth = "X-Result-Width"
XResultHeight = "X-Result-Height"
XOriginContentLength = "X-Origin-Content-Length"
)