mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-25 18:11:27 +00:00
20 lines
272 B
Go
20 lines
272 B
Go
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,
|
|
}
|
|
}
|