Documentation ¶
Overview ¶
retCode project httplib.go
Index ¶
- type HttpClient
- func (this *HttpClient) Get(url string) ([]byte, error)
- func (this *HttpClient) GetClient() *http.Client
- func (this *HttpClient) GetRet(url string) ([]byte, error)
- func (this *HttpClient) GetRetWithHeader(url string, headers map[string]string) ([]byte, error)
- func (this *HttpClient) GetWithHeader(url string, headers map[string]string) ([]byte, error)
- func (this *HttpClient) Post(url string, body []byte) ([]byte, error)
- func (this *HttpClient) PostWithHeader(url string, headers map[string]string, body []byte) ([]byte, error)
- func (this *HttpClient) UploadFile(url, filename, filePath string, headers, params map[string]string) ([]byte, error)
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 NewHttpClient ¶
func NewHttpClient() *HttpClient
func (*HttpClient) GetClient ¶
func (this *HttpClient) GetClient() *http.Client
func (*HttpClient) GetRetWithHeader ¶
func (*HttpClient) GetWithHeader ¶
func (*HttpClient) PostWithHeader ¶
func (*HttpClient) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.