caddy/modules/caddyhttp/fileserver
Francis Lavoie 09b2cbcf4d
caddyhttp: Add MatchWithError to replace SetVar hack (#6596)
* caddyhttp: Add `MatchWithError` to replace SetVar hack

* Error in IP matchers on TLS handshake not complete

* Use MatchWithError everywhere possible

* Move implementations to MatchWithError versions

* Looser interface checking to allow fallback

* CEL factories can return RequestMatcherWithError

* Clarifying comment since it's subtle that an err is returned

* Return 425 Too Early status in IP matchers

* Keep AnyMatch signature the same for now

* Apparently Deprecated can't be all-uppercase to get IDE linting

* Linter
2024-11-04 23:18:50 +00:00
..
testdata fileserver: fix try_policy when instantiating file matcher from CEL (#6624) 2024-10-20 14:08:30 +00:00
browse.go perf: use zap's Check() to prevent useless allocs (#6560) 2024-09-13 11:16:37 -06:00
browse.html browse: Exclude symlink target size from total, show arrow on size (#6412) 2024-07-07 07:01:07 -06:00
browsetplcontext_test.go fileserver: Use EscapedPath for browse (#5534) 2023-05-15 10:48:05 -06:00
browsetplcontext.go chore: Use slices package where possible (#6585) 2024-09-25 14:30:56 -06:00
caddyfile.go fileserver: Fix Caddyfile parsing 2024-10-31 10:37:37 -06:00
command.go fileserver: Browse can show symlink target if enabled (#5973) 2024-02-06 04:31:26 +00:00
matcher_test.go caddyhttp: Add MatchWithError to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00
matcher.go caddyhttp: Add MatchWithError to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00
staticfiles_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00
staticfiles.go perf: use zap's Check() to prevent useless allocs (#6560) 2024-09-13 11:16:37 -06:00