Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChkBaseAuth ¶
检查请求认证 https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Proxy-Authorization
func GetRandomString ¶
Types ¶
type BaseAuth ¶
type BaseAuth struct { IsBaseAuth bool // 需要BaseAuth认证 UserName string // 账号 PassWord string // 密码 }
BaseAuth http基础认证
type Cfg ¶
type Cfg struct { Addr string // 监听地址 Port string // 监听端口 IsAnonymous bool // 高匿名模式 Debug bool // 调试模式 BaseAuth BaseAuth // 基础认证 }
设置type
Click to show internal directories.
Click to hide internal directories.