Documentation
¶
Index ¶
- type HttpClient
- func (c *HttpClient) GET(url string, headers []*RequestHeader, timeout time.Duration) (int, []byte, error)
- func (c *HttpClient) POST(url string, data []byte, headers []*RequestHeader, timeout time.Duration) (int, []byte, error)
- func (c *HttpClient) POSTGzip(url string, data []byte, headers []*RequestHeader, timeout time.Duration) (int, []byte, error)
- type RequestHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func InitHttpClient ¶
func InitHttpClient() *HttpClient
func (*HttpClient) GET ¶
func (c *HttpClient) GET( url string, headers []*RequestHeader, timeout time.Duration, ) (int, []byte, error)
type RequestHeader ¶
Click to show internal directories.
Click to hide internal directories.