mirror of
https://github.com/caddyserver/caddy.git
synced 2026-07-10 02:46:54 +00:00
webTransportHijack previously type-asserted h.Transport to a concrete *HTTPTransport and then reached into its private h3Transport field. That couples the WebTransport path to one transport type and makes any future HTTP/3-capable transport unable to opt in. Define an unexported webTransportTransport capability interface with a single method returning the HTTP/3 *tls.Config (or nil if HTTP/3 is not enabled on the transport). HTTPTransport implements it via webTransportTLSConfig. The WT path now type-asserts on the interface, preserving both the "not WT-capable" and "HTTP/3 not enabled" failure modes with distinct error messages. |
||
|---|---|---|
| .. | ||
| caddyevents | ||
| caddyfs | ||
| caddyhttp | ||
| caddypki | ||
| caddytls | ||
| filestorage | ||
| internal/network | ||
| logging | ||
| metrics | ||
| standard | ||