client

package
v0.0.0-...-636a148 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 8 Imported by: 0

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/79.0.3945.117 Safari/537.36"
)

Variables

This section is empty.

Functions

func NewClientCookie

func NewClientCookie(rawURL, cookiesStr, domain string) *http.Client

func NewJarCookie

func NewJarCookie(URL *url.URL, cookiesStr, domain string) *cookiejar.Jar

func NewRequestUserAgent

func NewRequestUserAgent(method, url string, body io.Reader) (*http.Request, error)

func NewRequestUserAgentGet

func NewRequestUserAgentGet(url string) (*http.Request, error)

func ReadResponseBody

func ReadResponseBody(c *http.Client, req *http.Request) ([]byte, error)

func StringToCookies

func StringToCookies(cookiesStr, domain string) []*http.Cookie

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL