Documentation
¶
Index ¶
- Variables
- type Option
- func AddUAOption() Option
- func CookieOption(name string, value string) Option
- func DebugOption() Option
- func DisableTlsOption() Option
- func HeaderOption(key, value string) Option
- func HttpCookieOption(cookie *http.Cookie) Option
- func ProxyOption(prefer proxy_pool.Prefer) Option
- func TimeoutOption(d time.Duration) Option
- type ResponseWithProxy
- func Get(ctx context.Context, url string, params requests.Params, maxRetry int, ...) (*ResponseWithProxy, error)
- func Post(ctx context.Context, url string, form requests.Datas, maxRetry int, ...) (*ResponseWithProxy, error)
- func PostJson(ctx context.Context, url string, params interface{}, maxRetry int, ...) (*ResponseWithProxy, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTimeoutOption = TimeoutOption(time.Second * 5)
Functions ¶
This section is empty.
Types ¶
type Option ¶
func AddUAOption ¶ added in v0.0.7
func AddUAOption() Option
func CookieOption ¶
func DebugOption ¶
func DebugOption() Option
func DisableTlsOption ¶
func DisableTlsOption() Option
func HeaderOption ¶
func HttpCookieOption ¶
func ProxyOption ¶
func ProxyOption(prefer proxy_pool.Prefer) Option
func TimeoutOption ¶
Click to show internal directories.
Click to hide internal directories.