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
encode
fileserver
headers
map
push
requestbody
reverseproxy
rewrite
standard
templates
tracing
app.go
autohttps.go
caddyhttp.go
caddyhttp_test.go
celmatcher.go
celmatcher_test.go
errors.go
httpredirectlistener.go
logging.go
marshalers.go
matchers.go
matchers_test.go
metrics.go
metrics_test.go
replacer.go
replacer_test.go
responsematchers.go
responsematchers_test.go
responsewriter.go
responsewriter_test.go
routes.go
server.go
staticerror.go
staticresp.go
staticresp_test.go
subroute.go
vars.go