caddy/modules/caddyhttp
Mohammed Al Sahaf e039a5bb5c
chore: upgrade .golangci.yml and workflow to v2 (#6924)
* chore: upgrade .golangci.yml and workflow to v2

run `golangci-lint fmt`

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* run `golangci-lint run --fix`

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* more lint fixes

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* bring back comments to .golangci.yml

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* appease the linter some more

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* oops

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* use embedded structs

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* use embedded structs where they were used before

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* disable rule  `-QF1006`

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* missed a spot

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

---------

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
2025-06-03 02:24:32 +03:00
..
caddyauth caddyauth: Set authentication provider error in placeholder (#6932) 2025-04-15 22:32:08 +00:00
encode encode: try to use sendfile when compression is not used (#6749) 2024-12-20 21:37:16 +00:00
fileserver chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
headers headers: Allow nil HeaderOps (fix #6893) 2025-03-11 08:52:15 -06:00
intercept intercept: implement Unwrap for interceptedResponseHandler (#7016) 2025-05-12 12:15:34 -06:00
logging logging: Implement `log_append` handler (#6066) 2024-03-05 17:03:59 -07:00
map chore: Use slices package where possible (#6585) 2024-09-25 14:30:56 -06:00
proxyprotocol docs: expand proxy protocol docs (#6620) 2024-10-10 16:21:26 -04:00
push perf: use zap's Check() to prevent useless allocs (#6560) 2024-09-13 11:16:37 -06:00
requestbody requestbody: Fix ContentLength calculation after body replacement (#6896) 2025-03-12 22:18:02 +00:00
reverseproxy chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
rewrite chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
standard caddyhttp: New experimental handler for intercepting responses (#6232) 2024-05-13 17:38:18 +00:00
templates caddyhttp: Escaping placeholders in CEL, add `vars` and `vars_regexp` (#6594) 2024-10-02 06:34:04 -06:00
tracing tracing: Add `spanID` field to access logs and `http.vars.span_id` placeholder (#6646) 2024-10-21 11:06:55 -06:00
app.go caddytls: Prefer managed wildcard certs over individual subdomain certs (#6959) 2025-04-18 11:44:23 -06:00
autohttps.go chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
caddyhttp.go caddyhttp: Add `MatchWithError` to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00
caddyhttp_test.go caddyhttp: Add test cases to corpus (#6374) 2024-06-04 14:23:55 -06:00
celmatcher.go caddyhttp: Add `MatchWithError` to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00
celmatcher_test.go caddyhttp: Add `MatchWithError` to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00
errors.go caddyhttp: Preserve original error (fix #5652) 2023-07-25 09:41:56 -06:00
http2listener.go caddyhttp: Serve http2 when listener wrapper doesn't return *tls.Conn (#4929) 2023-04-10 17:05:02 +00:00
httpredirectlistener.go httpredirectlistener: Only set read limit for when request is HTTP (#5917) 2023-11-20 12:31:36 +00:00
invoke.go caddyhttp: Implement named routes, `invoke` directive (#5107) 2023-05-16 15:27:52 +00:00
ip_matchers.go caddyhttp: Add `MatchWithError` to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00
ip_range.go Move PrivateRangesCIDR() back: add a pass-through function (#6514) 2024-08-12 05:47:05 -04:00
logging.go Revert "logging: Always set fields func; fix #6829" 2025-02-07 06:23:43 -07:00
marshalers.go caddyhttp: Allow matching Transfer-Encoding, add to access logs (#6629) 2024-12-20 11:16:34 -07:00
matchers.go chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
matchers_test.go caddyhttp: Add `MatchWithError` to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00
metrics.go metrics: move `metrics` up, outside `servers` (#6606) 2024-10-18 09:54:21 -06:00
metrics_test.go chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
replacer.go chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
replacer_test.go caddyhttp: add http.request.local{,.host,.port} placeholder (#6182) 2024-03-27 21:36:53 +00:00
responsematchers.go caddyhttp: Allow matching Transfer-Encoding, add to access logs (#6629) 2024-12-20 11:16:34 -07:00
responsematchers_test.go
responsewriter.go caddyhttp: ResponseRecorder sets stream regardless of 1xx 2025-01-27 08:18:37 -07:00
responsewriter_test.go caddyhttp: Address some Go 1.20 features (#6252) 2024-04-24 00:05:57 +00:00
routes.go caddyhttp: Add `MatchWithError` to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00
server.go Revert "logging: Always set fields func; fix #6829" 2025-02-07 06:23:43 -07:00
server_test.go chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
staticerror.go caddyhttp: run `error` (msg) through replacer (#6536) 2024-08-22 11:32:44 -06:00
staticresp.go Use slices.Contains to simplify code (#7039) 2025-05-31 12:03:06 -06:00
staticresp_test.go
subroute.go
vars.go caddyhttp: Add `MatchWithError` to replace SetVar hack (#6596) 2024-11-04 23:18:50 +00:00