Documentation ¶
Index ¶
Constants ¶
View Source
const (
// UserAgent is the default user agent used by HTTP requests.
UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundTripper ¶
type RoundTripper struct {
// contains filtered or unexported fields
}
RoundTripper is a http client RoundTripper that can handle the Cloudflare anti-bot.
func New ¶
func New(upstream http.RoundTripper) (*RoundTripper, error)
New wraps a http client transport with one that can handle the Cloudflare anti-bot.
Click to show internal directories.
Click to hide internal directories.