Documentation ¶
Index ¶
Constants ¶
View Source
const ( LocalHttpProxyPort = "19036" ProxyAuthHeader = "Proxy-Authorization" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalHttpProxyServer ¶
type LocalHttpProxyServer struct { LocalHttpProxyServerPort string // 本地开启的 Http 代理服务器端口 LocalHttpProxyUrl string // 本地开启的 Http 代理服务器地址包含端口 // contains filtered or unexported fields }
LocalHttpProxyServer see https://github.com/go-rod/rod/issues/305
func NewLocalHttpProxyServer ¶
func NewLocalHttpProxyServer() *LocalHttpProxyServer
func (*LocalHttpProxyServer) IsRunning ¶
func (l *LocalHttpProxyServer) IsRunning() bool
func (*LocalHttpProxyServer) Start ¶
func (l *LocalHttpProxyServer) Start(settings []string, localHttpProxyServerPort string) (string, error)
Start 传入参数为 [0] protocol [1] Address [2] Port [3] Username [4] Password,如果没得账号密码,则后面两个可以不传入
func (*LocalHttpProxyServer) Stop ¶
func (l *LocalHttpProxyServer) Stop() error
Click to show internal directories.
Click to hide internal directories.