Documentation ¶
Index ¶
Constants ¶
View Source
const (
UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"
)
Variables ¶
View Source
var ( Err401 = errors.New("用户登录信息失效") ErrTimeOutHeader = errors.New("请求目标网站超时(header)") )
Functions ¶
func CHeckTimeOutErr ¶
Types ¶
type CapLoginProcessor ¶
type RequestFunc ¶
type RequestObj ¶
type RequestObj struct { URL string Opt *grequests.RequestOptions }
func NewCurl ¶
func NewCurl(urlStr string) (ro *RequestObj, err error)
func (*RequestObj) Get ¶
func (r *RequestObj) Get(fn RequestFunc) error
func (*RequestObj) GetCookie ¶
func (r *RequestObj) GetCookie() error
func (*RequestObj) Post ¶
func (r *RequestObj) Post(fn RequestFunc) error
Click to show internal directories.
Click to hide internal directories.