Documentation ¶
Index ¶
- Variables
- func Do(req *http.Request) (*http.Response, error)
- func DoGet(urlStr string, params url.Values) ([]byte, error)
- func DoGetEx(urlStr string, params url.Values, p interface{}) error
- func DoJsonPost(urlStr string, param interface{}) ([]byte, error)
- func DoMultiPartPost(urlStr string, headers map[string]string, params url.Values, files url.Values) ([]byte, error)
- func DoMultiPartPostEx(urlStr string, headers map[string]string, params url.Values, files url.Values, ...) error
- func DoPost(urlStr string, params url.Values) ([]byte, error)
- func DoPostEx(urlStr string, params url.Values, p interface{}) error
- func DoRequest(urlStr string) ([]byte, error)
- func NewTimeoutClient(connectTimeout time.Duration, readWriteTimeout time.Duration) *http.Client
- func TimeoutDialer(cTimeout time.Duration, rwTimeout time.Duration) func(net, addr string) (c net.Conn, err error)
- type DnsCache
- type DnsCacheItem
- type TimeoutConn
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultClient *http.Client = NewTimeoutClient(10*time.Second, 10*time.Second) DnsCacheDuration time.Duration = 0 )
Functions ¶
func DoJsonPost ¶
func DoMultiPartPost ¶
func DoMultiPartPostEx ¶
func NewTimeoutClient ¶
Types ¶
type DnsCacheItem ¶
type TimeoutConn ¶
func NewTimeoutConn ¶
func NewTimeoutConn(conn net.Conn, timeout time.Duration) *TimeoutConn
Click to show internal directories.
Click to hide internal directories.