Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DropHeaders = []string{
"Access-Control-Allow-Origin",
"Access-Control-Expose-Headers",
"Content-Security-Policy",
"Referrer-Policy",
"Server",
"Strict-Transport-Security",
"X-Content-Type-Options",
"X-Frame-Options",
"X-Ratelimit-Limit",
"X-Ratelimit-Remaining",
"X-Ratelimit-Reset",
"X-Ratelimit-Resource",
"X-Ratelimit-Used",
"X-Xss-Protection",
}
DropHeaders are the headers that are dropped before persisting the response to S3.
View Source
var Key = func(req *http.Request) string { return strings.TrimPrefix(req.URL.String(), "https://") }
Key generates the S3 key from the URL.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.