Improve: HTTP proxy server handler
This commit is contained in:
14
adapters/local/https.go
Normal file
14
adapters/local/https.go
Normal file
@ -0,0 +1,14 @@
|
||||
package adapters
|
||||
|
||||
import (
|
||||
"net"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// NewHTTPS is HTTPAdapter generator
|
||||
func NewHTTPS(request *http.Request, conn net.Conn) *SocketAdapter {
|
||||
return &SocketAdapter{
|
||||
addr: parseHTTPAddr(request),
|
||||
conn: conn,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user