Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) AddProxy(scheme, host string)
- func (c *Client) Get(URL string) (resp []byte, err error)
- func (c *Client) GetWithHeader(URL string, hd http.Header) (resp []byte, err error)
- func (c *Client) Post(URL string, hd http.Header, param interface{}, paramNeedEncode bool, ...) (resp []byte, err error)
- func (c *Client) PostJSON(URL string, hd http.Header, param interface{}, paramNeedEncode bool, ...) (resp []byte, err error)
- func (c *Client) SetProxyHealthFc(fc func(*Client, *url.URL) bool)
- func (c *Client) SetProxyHealthTimeout(healthTimeOut int64)
- func (c *Client) SetVerbose(isDebug bool)
- type URLValues
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AddProxy = defaultClient.AddProxy SetProxyHealthFc = defaultClient.SetProxyHealthFc SetVerbose = defaultClient.SetVerbose Get = defaultClient.Get GetWithHeader = defaultClient.GetWithHeader Post = defaultClient.Post PostJSON = defaultClient.PostJSON )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetWithHeader ¶
func (*Client) SetProxyHealthFc ¶
func (*Client) SetProxyHealthTimeout ¶
func (*Client) SetVerbose ¶
Click to show internal directories.
Click to hide internal directories.