Documentation ¶
Index ¶
- func GET(urllink string, params map[string]string, headers map[string]string, ...) (*http.Response, error)
- func Get(urllink string, params map[string]string, headers map[string]string, ...) (bytes []byte, err error)
- func GetBody(urllink string, body []byte, headers map[string]string, ...) (bs []byte, err error)
- func GetBodyJson(urllink string, params map[string]string, headers map[string]string, ...) (bytes []byte, err error)
- func GetForm(urllink string, params map[string]string, headers map[string]string, ...) (bytes []byte, err error)
- func NewClient(proxy *http.Transport, timeout time.Duration) *c
- func NewHeaders(header Header) map[string]string
- func NewProxy(rawurl string) (*http.Transport, error)
- func POST(urllink string, params map[string]string, headers map[string]string, ...) (*http.Response, error)
- func Post(urllink string, params map[string]string, headers map[string]string, ...) (bytes []byte, err error)
- func PostBody(urllink string, body []byte, headers map[string]string, ...) (bs []byte, err error)
- func PostBodyJson(urllink string, params map[string]string, headers map[string]string, ...) (bytes []byte, err error)
- func PostForm(urllink string, params map[string]string, headers map[string]string, ...) (bytes []byte, err error)
- type Header
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBodyJson ¶
func PostBodyJson ¶
Types ¶
type Header ¶
type Header string
const ( HeaderPcWinMicrosoftEdge Header = `` /* 130-byte string literal not displayed */ HeaderPcWinFirefox Header = `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0` HeaderPcWinGoogleChrome Header = `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36` HeaderPcWin360Browser Header = `Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36` HeaderAndroidUCBrowser Header = `` /* 159-byte string literal not displayed */ HeaderAndroidHuaWeiBrowser Header = `` /* 134-byte string literal not displayed */ )
Click to show internal directories.
Click to hide internal directories.