mihomo/adapters/inbound/https.go
2018-09-30 12:25:52 +08:00

14 lines
238 B
Go

package adapters
import (
"net"
"net/http"
)
// NewHTTPS is HTTPAdapter generator
func NewHTTPS(request *http.Request, conn net.Conn) *SocketAdapter {
return &SocketAdapter{
metadata: parseHTTPAddr(request),
conn: conn,
}
}