SplitHTTP: Read and validate HTTP/1.1 responses (#3797)

This commit is contained in:
Dmitry Anderson
2024-09-16 14:33:03 +02:00
committed by GitHub
parent 67c2a29065
commit a931507dd6
4 changed files with 44 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
package splithttp
import (
"bufio"
"net"
)
type H1Conn struct {
UnreadedResponsesCount int
RespBufReader *bufio.Reader
net.Conn
}
func NewH1Conn(conn net.Conn) *H1Conn {
return &H1Conn{
RespBufReader: bufio.NewReader(conn),
Conn: conn,
}
}