mirror of https://github.com/XTLS/Xray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
272 B
20 lines
272 B
2 months ago
|
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,
|
||
|
}
|
||
|
}
|