Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderAccept = "Accept" HeaderUserAgent = "User-Agent" )
View Source
const ( MIMEApplicationJSON = "application/json" MIMEApplicationXML = "application/xml" )
View Source
const ( UAWindowsChrome = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" UAWindowsEdge = "" /* 129-byte string literal not displayed */ UAMacOSChrome = "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" UAMacOSSafari = "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15" UAAndroidChrome = "Mozilla/5.0 (Linux; Android 14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.66 Mobile Safari/537.36" UAIOSSafari = "" /* 135-byte string literal not displayed */ )
Variables ¶
View Source
var ProxyFromEnv = httpproxy.FromEnvironment
Functions ¶
func HasProxyEnv ¶ added in v2.0.6
func HasProxyEnv() bool
Types ¶
type ROption ¶ added in v2.0.5
type ROption = optionutil.I[ROptions]
func WithAccept ¶
func WithUserAgent ¶
Click to show internal directories.
Click to hide internal directories.