Documentation ¶
Overview ¶
Package http implements an http proxy server
Index ¶
Constants ¶
View Source
const Name = "http"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyConn ¶
用于纯http的 代理,dial后,第一次要把客户端的数据原封不动发送给远程服务端 就是说,第一次从 ProxyConn Read时,读到的一定是之前读过的数据,原理有点像 fallback
type Server ¶
type Server struct {
proxy.ProxyCommonStruct
}
implements proxy.Server
func (*Server) CanFallback ¶
type ServerCreator ¶
type ServerCreator struct{}
func (ServerCreator) NewServer ¶
func (ServerCreator) NewServer(dc *proxy.ListenConf) (proxy.Server, error)
func (ServerCreator) NewServerFromURL ¶
Click to show internal directories.
Click to hide internal directories.