SplitHTTP: Read and validate HTTP/1.1 responses (#3797)
This commit is contained in:
1 parent
67c2a29065
commit
a931507dd6
4 files changed
+44
-6
No files matched your search
@@ -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,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user