Documentation
¶
Index ¶
- Variables
- func ClientPost(c *http.Client, url, content string) ([]byte, error)
- func Get(url string) ([]byte, error)
- func HttpGet(url string) string
- func HttpPost(url, postData string, params ...string) ([]byte, error)
- func HttpsPost(url, postData string, params ...string) ([]byte, error)
- func NewHttpsClient(certs tls.Certificate) *http.Client
- func Post(url, postData string, params ...string) ([]byte, error)
- type Values
- func (v Values) Add(key, value string)
- func (v Values) Data() []byte
- func (v Values) Del(key string)
- func (v Values) Encode() string
- func (v Values) Get(key string) string
- func (v Values) GetSignData() string
- func (v Values) GetSignDataNoSpace() string
- func (v Values) Set(key, value string)
- func (v Values) ToString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *log.Log
Functions ¶
func NewHttpsClient ¶
func NewHttpsClient(certs tls.Certificate) *http.Client
Types ¶
type Values ¶
Values maps a string key to a list of values. It is typically used for query parameters and form values. Unlike in the http.Header map, the keys in a Values map are case-sensitive.
func (Values) Encode ¶
Encode encodes the values into “URL encoded” form ("bar=baz&foo=quux") sorted by key.
func (Values) Get ¶
Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.
Click to show internal directories.
Click to hide internal directories.