Documentation ¶
Index ¶
- type HttpClient
- func (c *HttpClient) CheckHttpServiceConnected(httpUrl string) bool
- func (c *HttpClient) CheckInternetConnected() bool
- func (c *HttpClient) Close()
- func (c *HttpClient) DownloadFile(url string, filepath string, header map[string]string) error
- func (c *HttpClient) GetQueryRequest(url string, params map[string]string, header map[string]string) (int, map[string]interface{}, error)
- func (c *HttpClient) PostBodyRequest(url string, jsonStr string, header map[string]string) (int, map[string]interface{}, error)
- func (c *HttpClient) PostFormDataRequest(url string, params map[string]string, header map[string]string) (int, map[string]interface{}, error)
- func (c *HttpClient) PostFormDataWithFilesRequest(url string, params map[string]string, sendFiles []SendFile, ...) (int, map[string]interface{}, error)
- func (c *HttpClient) PostSoapRequest(url string, payload []byte, header map[string]string) (int, []byte, error)
- func (c *HttpClient) SendBodyRequest(method, url, jsonStr string, header map[string]string) (int, map[string]interface{}, error)
- func (c *HttpClient) SendFormDataRequest(method, url string, params map[string]string, header map[string]string) (int, map[string]interface{}, error)
- func (c *HttpClient) SendFormDataWithFilesRequest(method, url string, params map[string]string, sendFiles []SendFile, ...) (int, map[string]interface{}, error)
- func (c *HttpClient) SendQueryRequest(method, url string, params map[string]string, header map[string]string) (int, map[string]interface{}, error)
- func (c *HttpClient) SendSoapRequest(method, url string, payload []byte, header map[string]string) (int, []byte, error)
- type SendFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶ added in v0.4.0
type HttpClient struct { TimeoutSeconds int InsecureSkipVerify bool EnabledSingledResuedClient bool // contains filtered or unexported fields }
func NewDefaultHttpClient ¶ added in v0.4.0
func NewDefaultHttpClient() *HttpClient
func NewHttpClient ¶ added in v0.4.0
func NewHttpClient(timeoutSeconds int, insecureSkipVerify, enabledSingledResuedClient bool) *HttpClient
func (*HttpClient) CheckHttpServiceConnected ¶ added in v0.4.0
func (c *HttpClient) CheckHttpServiceConnected(httpUrl string) bool
func (*HttpClient) CheckInternetConnected ¶ added in v0.4.0
func (c *HttpClient) CheckInternetConnected() bool
func (*HttpClient) Close ¶ added in v0.4.0
func (c *HttpClient) Close()
func (*HttpClient) DownloadFile ¶ added in v0.4.0
func (*HttpClient) GetQueryRequest ¶ added in v0.4.0
func (*HttpClient) PostBodyRequest ¶ added in v0.4.0
func (*HttpClient) PostFormDataRequest ¶ added in v0.4.0
func (*HttpClient) PostFormDataWithFilesRequest ¶ added in v0.4.0
func (*HttpClient) PostSoapRequest ¶ added in v0.4.0
func (*HttpClient) SendBodyRequest ¶ added in v0.4.0
func (*HttpClient) SendFormDataRequest ¶ added in v0.4.0
func (*HttpClient) SendFormDataWithFilesRequest ¶ added in v0.4.0
func (*HttpClient) SendQueryRequest ¶ added in v0.4.0
func (*HttpClient) SendSoapRequest ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.