Documentation ¶
Index ¶
- Constants
- func NewClientCookie(rawURL, cookiesStr, domain string) *http.Client
- func NewJarCookie(URL *url.URL, cookiesStr, domain string) *cookiejar.Jar
- func NewRequestUserAgent(method, url string, body io.Reader) (*http.Request, error)
- func NewRequestUserAgentGet(url string) (*http.Request, error)
- func ReadResponseBody(c *http.Client, req *http.Request) ([]byte, error)
- func StringToCookies(cookiesStr, domain string) []*http.Cookie
Constants ¶
View Source
const (
UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"
)
Variables ¶
This section is empty.
Functions ¶
func NewClientCookie ¶
func NewRequestUserAgent ¶
func StringToCookies ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.