Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpProxy ¶
func NewHttpProxy(port string)
Types ¶
type HttpAdapter ¶
type HttpAdapter struct {
// contains filtered or unexported fields
}
func NewHttp ¶
func NewHttp(host string, w http.ResponseWriter, r *http.Request) (*HttpAdapter, chan struct{})
func (*HttpAdapter) Addr ¶
func (h *HttpAdapter) Addr() *C.Addr
func (*HttpAdapter) Close ¶
func (h *HttpAdapter) Close()
func (*HttpAdapter) Connect ¶
func (h *HttpAdapter) Connect(proxy C.ProxyAdapter)
type HttpsAdapter ¶
type HttpsAdapter struct {
// contains filtered or unexported fields
}
func (*HttpsAdapter) Addr ¶
func (h *HttpsAdapter) Addr() *C.Addr
func (*HttpsAdapter) Close ¶
func (h *HttpsAdapter) Close()
func (*HttpsAdapter) Connect ¶
func (h *HttpsAdapter) Connect(proxy C.ProxyAdapter)
Click to show internal directories.
Click to hide internal directories.