Documentation ¶
Index ¶
- Variables
- func CloneDefaultTransport() *http.Transport
- func DefaultHttpClient(proxyURL string) *http.Client
- func GetParamHmacSHA256Base64Sign(secret, params string) (string, error)
- func GzipCompress(in []byte) ([]byte, error)
- func GzipUncompress(in []byte) ([]byte, error)
- func HttpGet(client *http.Client, reqUrl string, postData string, headers map[string]string) ([]byte, error)
- func HttpPost(client *http.Client, reqUrl string, postData string, headers map[string]string) ([]byte, error)
- func NewHttpRequest(client *http.Client, method string, reqUrl string, postData string, ...) ([]byte, error)
- func ParseProxy(proxyURL string) (res func(*http.Request) (*url.URL, error), err error)
- func SetLevel(level int)
- func ValuesToJson(v url.Values) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultTransport *http.Transport
)
Functions ¶
func CloneDefaultTransport ¶
func DefaultHttpClient ¶
func NewHttpRequest ¶
func ParseProxy ¶
"socks5://127.0.0.1:1080"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.