mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-10 20:22:31 +02:00
* ImageData.Headers() * *ImageData -> ImageData * withmatt -> httpheaders of our own * .Clone() headers, nil * NewFromBytesWithFormat -> nil * svg.go -> do not Clone()
65 lines
3.0 KiB
Go
65 lines
3.0 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"
|
|
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"
|
|
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"
|
|
XContentTypeOptions = "X-Content-Type-Options"
|
|
XForwardedFor = "X-Forwarded-For"
|
|
XForwardedHost = "X-Forwarded-Host"
|
|
XForwardedProto = "X-Forwarded-Proto"
|
|
XFrameOptions = "X-Frame-Options"
|
|
)
|