WeidiDeng
4158f9e8d5
fix matching if only h1 is enabled
2025-05-23 10:28:58 +08:00
Weidi Deng
92ea784712
return a net.Conn that implements connectionStater if applicable
2025-05-23 10:15:32 +08:00
WeidiDeng
4c1922448b
fix if check
2025-05-23 10:15:31 +08:00
WeidiDeng
337fc17423
add comments about either h1 or h2 must be used in the listener
2025-05-23 10:15:31 +08:00
WeidiDeng
ff4aae6098
check if connection implements connectionStater when it should
2025-05-23 10:15:31 +08:00
WeidiDeng
c537d9bc5c
check http version while reading the connection
2025-05-23 10:15:31 +08:00
WeidiDeng
6c1d6b06b4
fix handling for h2c
2025-05-23 10:15:30 +08:00
WeidiDeng
ca256e3acf
fix lint
2025-05-23 10:15:30 +08:00
WeidiDeng
f4b57b0a32
use the new http.Protocols to handle h1, h2 and h2c requests
2025-05-23 10:15:23 +08:00
WeidiDeng
d8d87a378f
caddyhttp: Serve http2 when listener wrapper doesn't return *tls.Conn ( #4929 )
...
* Serve http2 when listener wrapper doesn't return *tls.Conn
* close conn when h2server serveConn returns
* merge from upstream
* rebase from latest
* run New and Closed ConnState hook for h2 conns
* go fmt
* fix lint
* Add comments
* reorder import
2023-04-10 17:05:02 +00:00