caddy/modules/caddyhttp
Matt Holt e3e8aabbcf
core: Refactor and improve listener logic (#5089)
* core: Refactor, improve listener logic

Deprecate:
- caddy.Listen
- caddy.ListenTimeout
- caddy.ListenPacket

Prefer caddy.NetworkAddress.Listen() instead.

Change:
- caddy.ListenQUIC (hopefully to remove later)
- caddy.ListenerFunc signature (add context and ListenConfig)

- Don't emit Alt-Svc header advertising h3 over HTTP/3

- Use quic.ListenEarly instead of quic.ListenEarlyAddr; this gives us
more flexibility (e.g. possibility of HTTP/3 over UDS) but also
introduces a new issue:
https://github.com/lucas-clemente/quic-go/issues/3560#issuecomment-1258959608

- Unlink unix socket before and after use

* Appease the linter

* Keep ListenAll
2022-09-28 13:35:51 -06:00
..
caddyauth core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
encode encode: don't WriteHeader unless called (#5060) 2022-09-21 08:30:42 -06:00
fileserver fileserver: Reinstate --debug flag 2022-09-20 16:56:02 -06:00
headers headers: Support repeated WriteHeader if 1xx (fix #5074) 2022-09-23 17:11:53 -06:00
map map: Coerce val to string, fix #4987 2022-09-01 21:15:44 -06:00
push core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
requestbody requestbody: Return HTTP 413 (fix #4558) 2022-03-11 12:34:55 -07:00
reverseproxy reverseproxy: fix upstream scheme handling in command (#5088) 2022-09-27 13:03:30 -06:00
rewrite core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
standard reverseproxy: Support performing pre-check requests (#4739) 2022-05-06 10:50:26 -04:00
templates templates: Document httpError function (#4972) 2022-09-01 22:07:52 -06:00
tracing core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
app.go core: Refactor and improve listener logic (#5089) 2022-09-28 13:35:51 -06:00
autohttps.go caddyhttp: Skip inserting HTTP->HTTPS redir if catch-all for both exist (#5051) 2022-09-19 22:11:19 -06:00
caddyhttp.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
caddyhttp_test.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
celmatcher.go core: Variadic Context.Logger(); soft deprecation 2022-09-16 16:55:36 -06:00
celmatcher_test.go Expose several Caddy HTTP Matchers to the CEL Matcher (#4715) 2022-06-22 18:53:46 -04:00
errors.go requestbody: Return HTTP 413 (fix #4558) 2022-03-11 12:34:55 -07:00
httpredirectlistener.go caddyhttp: Move HTTP redirect listener to an optional module (#4585) 2022-02-19 15:36:36 -07:00
logging.go caddyhttp: Add 'skip_log' var to omit request from logs (#4691) 2022-09-15 10:05:36 -06:00
marshalers.go caddyhttp: Make logging of credential headers opt-in (#4438) 2021-12-02 13:26:24 -07:00
matchers.go core: Refactor and improve listener logic (#5089) 2022-09-28 13:35:51 -06:00
matchers_test.go caddyhttp: Smarter path matching and rewriting (#4948) 2022-08-16 08:48:57 -06:00
metrics.go caddyhttp: Make metrics opt-in (#5042) 2022-09-16 13:32:49 -06:00
metrics_test.go move common metrics-related funcs to internal package 2022-01-25 15:07:17 -05:00
replacer.go fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
replacer_test.go fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
responsematchers.go General minor improvements to docs 2021-09-24 18:31:01 -06:00
responsematchers_test.go reverseproxy: Add handle_response blocks to reverse_proxy (#3710) (#4021) 2021-05-02 12:39:06 -06:00
responsewriter.go Tweak some comments 2022-09-21 12:59:44 -06:00
responsewriter_test.go caddyhttp: ensure ResponseWriterWrapper and ResponseRecorder use ReadFrom if the underlying response writer implements it. (#5022) 2022-09-07 21:13:35 +01:00
routes.go caddyhttp: Make metrics opt-in (#5042) 2022-09-16 13:32:49 -06:00
server.go core: Refactor and improve listener logic (#5089) 2022-09-28 13:35:51 -06:00
staticerror.go httpcaddyfile: Add error directive for the existing handler (#4034) 2021-03-12 13:25:49 -07:00
staticresp.go caddyhttp: Add --debug flag to commands 2022-09-15 23:10:16 -06:00
staticresp_test.go Move from deprecated ioutil to os and io packages (#4364) 2021-09-29 11:17:48 -06:00
subroute.go reverseproxy: Enable changing only the status code (close #2920) 2020-06-04 12:06:38 -06:00
vars.go caddyhttp: Accept placeholders in vars matcher key 2022-09-01 16:49:18 -06:00