mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-09 19:52:30 +02:00
* stream_test.go * StreamHandler * stream.go replaced with handlers/stream * Small fixes * Separate SetMaxAge/SetForceExpires * Fallback image TTL * Added existing TTL check to SetIsFallbackImage * guard clause SetIsFallbackImage * Removed old stream.go
75 lines
3.5 KiB
Go
75 lines
3.5 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"
|
|
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"
|
|
Server = "Server"
|
|
SetCookie = "Set-Cookie"
|
|
StrictTransportSecurity = "Strict-Transport-Security"
|
|
Upgrade = "Upgrade"
|
|
UserAgent = "User-Agent"
|
|
Vary = "Vary"
|
|
Via = "Via"
|
|
WwwAuthenticate = "Www-Authenticate"
|
|
XAmznRequestContextHeader = "x-amzn-request-context"
|
|
XContentTypeOptions = "X-Content-Type-Options"
|
|
XForwardedFor = "X-Forwarded-For"
|
|
XForwardedHost = "X-Forwarded-Host"
|
|
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"
|
|
)
|