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

This commit is contained in:
Dmitry Anderson authored and GitHub committed 2024-09-16 12:33:03 +00:00
1 parent 67c2a29065
commit a931507dd6
4 files changed
+44 -6

No files matched your search

+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,
}
}