Documentation ¶
Index ¶
- func DefaultTransport() *http.Transport
- func DefaultTransportWithProxy(proxy func(*http.Request) (*url.URL, error)) *http.Transport
- func DefaultTransportWithTLS(tlsClientConfig *tls.Config) *http.Transport
- func DefaultTransportWithTLSAndProxy(proxy func(*http.Request) (*url.URL, error), tlsClientConfig *tls.Config) *http.Transport
- func TimeoutDialer(cTimeout, rwTimeout time.Duration) func(netw, addr string) (c net.Conn, err error)
- func TransportWithProxyAndSkipVerifyAndTimeOut(proxy func(*http.Request) (*url.URL, error), ...) *http.Transport
- func TransportWithProxyAndTimeOut(proxy func(*http.Request) (*url.URL, error), tlsClientConfig *tls.Config, ...) *http.Transport
- func TransportWithSkipVerifyAndTimeOut(headerTimeout, connectTimeout, readWriteTimeout time.Duration) *http.Transport
- func TransportWithTimeOut(tlsClientConfig *tls.Config, ...) *http.Transport
- type Client
- func NewClient() *Client
- func NewClientWhthTLSAndHeader(tlsClientConfig *tls.Config, header http.Header) *Client
- func NewClientWhthTLSAndProxyAndHeader(tlsClientConfig *tls.Config, proxy func(*http.Request) (*url.URL, error), ...) *Client
- func NewClientWhthTransportAndHeader(transport *http.Transport, header http.Header) *Client
- func NewClientWithHeader(header http.Header) *Client
- func NewClientWithProxy(proxy func(*http.Request) (*url.URL, error)) *Client
- func NewClientWithProxyAndHeader(proxy func(*http.Request) (*url.URL, error), header http.Header) *Client
- func NewClientWithTLS(tlsClientConfig *tls.Config) *Client
- func NewClientWithTLSAndProxy(tlsClientConfig *tls.Config, proxy func(*http.Request) (*url.URL, error)) *Client
- func NewClientWithTransport(transport *http.Transport) *Client
- func (c *Client) Delete(rawurl string) (*http.Response, error)
- func (c *Client) DeleteForm(rawurl string, data url.Values) (*http.Response, error)
- func (c *Client) DeleteFormJson(rawurl string, data []byte) (*http.Response, error)
- func (c *Client) DeleteFormJsonWithHeader(rawurl string, header http.Header, data []byte) (*http.Response, error)
- func (c *Client) DeleteFormWithHeader(rawurl string, header http.Header, data url.Values) (*http.Response, error)
- func (c *Client) DeleteJson(rawurl string, data []byte) (*http.Response, error)
- func (c *Client) DeleteJsonWithHeader(rawurl string, header http.Header, data []byte) (*http.Response, error)
- func (c *Client) DeleteWithHeader(rawurl string, header http.Header) (*http.Response, error)
- func (c *Client) Get(rawurl string) (*http.Response, error)
- func (c *Client) GetForm(rawurl string, data url.Values) (*http.Response, error)
- func (c *Client) GetFormJson(rawurl string, data []byte) (*http.Response, error)
- func (c *Client) GetFormJsonWithHeader(rawurl string, header http.Header, data []byte) (*http.Response, error)
- func (c *Client) GetFormWithHeader(rawurl string, header http.Header, data url.Values) (*http.Response, error)
- func (c *Client) GetJson(rawurl string, data []byte) (*http.Response, error)
- func (c *Client) GetJsonWithHeader(rawurl string, header http.Header, data []byte) (*http.Response, error)
- func (c *Client) GetWithHeader(rawurl string, header http.Header) (*http.Response, error)
- func (c *Client) Gzip() *Client
- func (c *Client) GzipDisable() *Client
- func (c *Client) Post(rawurl string, data io.Reader) (*http.Response, error)
- func (c *Client) PostForm(rawurl string, data url.Values) (*http.Response, error)
- func (c *Client) PostFormJson(rawurl string, data []byte) (*http.Response, error)
- func (c *Client) PostFormJsonWithHeader(rawurl string, header http.Header, data []byte) (*http.Response, error)
- func (c *Client) PostFormWithHeader(rawurl string, header http.Header, data url.Values) (*http.Response, error)
- func (c *Client) PostJson(rawurl string, data []byte) (*http.Response, error)
- func (c *Client) PostJsonWithHeader(rawurl string, header http.Header, data []byte) (*http.Response, error)
- func (c *Client) PostMultipart(rawurl string, data map[string][]string) (resp *http.Response, err error)
- func (c *Client) PostMultipartWithHeader(rawurl string, header http.Header, data map[string][]string) (resp *http.Response, err error)
- func (c *Client) PostWithHeader(rawurl string, header http.Header, data io.Reader) (*http.Response, error)
- func (c *Client) Put(rawurl string, data io.Reader) (*http.Response, error)
- func (c *Client) PutForm(rawurl string, data url.Values) (*http.Response, error)
- func (c *Client) PutFormJson(rawurl string, data []byte) (*http.Response, error)
- func (c *Client) PutFormJsonWithHeader(rawurl string, header http.Header, data []byte) (*http.Response, error)
- func (c *Client) PutFormWithHeader(rawurl string, header http.Header, data url.Values) (*http.Response, error)
- func (c *Client) PutJson(rawurl string, data []byte) (*http.Response, error)
- func (c *Client) PutJsonWithHeader(rawurl string, header http.Header, data []byte) (*http.Response, error)
- func (c *Client) PutWithHeader(rawurl string, header http.Header, data io.Reader) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTransport ¶
func DefaultTransportWithTLS ¶
func TimeoutDialer ¶
Types ¶
type Client ¶
func NewClientWithHeader ¶
func NewClientWithProxy ¶
func NewClientWithTLS ¶
func NewClientWithTransport ¶
func (*Client) DeleteForm ¶
func (*Client) DeleteFormJson ¶
func (*Client) DeleteFormJsonWithHeader ¶
func (*Client) DeleteFormWithHeader ¶
func (*Client) DeleteJson ¶
func (*Client) DeleteJsonWithHeader ¶
func (*Client) DeleteWithHeader ¶
func (*Client) GetFormJson ¶
func (*Client) GetFormJsonWithHeader ¶
func (*Client) GetFormWithHeader ¶
func (*Client) GetJsonWithHeader ¶
func (*Client) GetWithHeader ¶
func (*Client) GzipDisable ¶
func (*Client) PostFormJson ¶
func (*Client) PostFormJsonWithHeader ¶
func (*Client) PostFormWithHeader ¶
func (*Client) PostJsonWithHeader ¶
func (*Client) PostMultipart ¶
func (*Client) PostMultipartWithHeader ¶
func (*Client) PostWithHeader ¶
func (*Client) PutFormJson ¶
func (*Client) PutFormJsonWithHeader ¶
func (*Client) PutFormWithHeader ¶
func (*Client) PutJsonWithHeader ¶
Click to show internal directories.
Click to hide internal directories.