You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Francis Lavoie
3f6283b385
fileserver: Add status code override ( #4076 )
After reading a question about the `handle_response` feature of `reverse_proxy`, I realized that we didn't have a way of serving an arbitrary file with a status code other than 200. This is an issue in situations where you want to serve a custom error page in routes that are not errors, like the aforementioned `handle_response`, where you may want to retain the status code returned by the proxy but write a response with content from a file.
This feature is super simple, basically if a status code is configured (can be a status code number, or a placeholder string) then that status will be written out before serving the file - if we write the status code first, then the stdlib won't write its own (only the first HTTP status header wins).
4 years ago
..
caddyauth
go.mod: Migrate to golang.org/x/term (#4073)
4 years ago
encode
encode,staticfiles: Content negotiation, precompressed files (#4045)
4 years ago
fileserver
fileserver: Add status code override (#4076)
4 years ago
headers
headers: Fix Caddyfile parsing for `request_header` with matchers (#4085)
4 years ago
map
map: Accept regex substitution in outputs (#3991)
4 years ago
push
headers: Support default header values in Caddyfile with '?' (#3807)
5 years ago
requestbody
Revert "requestbody: Allow overwriting remote address"
5 years ago
reverseproxy
reverseproxy: Set cookie path to `/` when using cookie lb_policy (#4096)
4 years ago
rewrite
rewrite: Implement regex path replacements
4 years ago
standard
encode,staticfiles: Content negotiation, precompressed files (#4045)
4 years ago
templates
templates: Add fileExists and httpError template actions
5 years ago
app.go
reverseproxy: Add duration/latency placeholders (close #4012) (#4013)
4 years ago
autohttps.go
httpcaddyfile: Fix default issuers when email provided
5 years ago
caddyhttp.go
httpcaddyfile: Configure servers via global options (#3836)
5 years ago
celmatcher.go
caddyhttp: Add support to resolve DN in CEL expression (#3608)
5 years ago
celmatcher_test.go
caddyhttp: Add support to resolve DN in CEL expression (#3608)
5 years ago
errors.go
ci: Use golangci's github action for linting (#3794)
5 years ago
marshalers.go
ci: Use golangci's github action for linting (#3794)
5 years ago
matchers.go
caddyhttp: Support placeholders in header matcher values (close #3916)
5 years ago
matchers_test.go
caddyhttp: Support placeholders in header matcher values (close #3916)
5 years ago
metrics.go
metrics: Always track method label in uppercase (#3742)
5 years ago
metrics_test.go
metrics: Fix panic when headers aren't written (#3737)
5 years ago
replacer.go
reverseproxy: Add duration/latency placeholders (close #4012) (#4013)
4 years ago
replacer_test.go
caddyhttp: New placeholder for PEM of client certificate (#3662)
5 years ago
responsewriter.go
caddyhttp: Fix trailers when recording responses (fixes #3236)
5 years ago
routes.go
metrics: Fix hidden panic while observing with bad exemplars (#3733)
5 years ago
server.go
caddyhttp: improve grammar of comment for AllowH2C (#4072)
4 years ago
staticerror.go
httpcaddyfile: Add `error` directive for the existing handler (#4034)
4 years ago
staticresp.go
caddyhttp: Check for invalid subdirectives of static_response
5 years ago
staticresp_test.go
Implement config adapters and beginning of Caddyfile adapter
6 years ago
subroute.go
reverseproxy: Enable changing only the status code (close #2920)
5 years ago
vars.go
caddyfile: Add support for `vars` and `vars_regexp` matchers (#3730)
5 years ago