network

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 (c *HttpClient) DownloadFile(url string, filepath string, header map[string]string) error

func (*HttpClient) GetQueryRequest added in v0.4.0

func (c *HttpClient) GetQueryRequest(url string, params map[string]string, header map[string]string) (int, map[string]interface{}, error)

func (*HttpClient) PostBodyRequest added in v0.4.0

func (c *HttpClient) PostBodyRequest(url string, jsonStr string, header map[string]string) (int, map[string]interface{}, error)

func (*HttpClient) PostFormDataRequest added in v0.4.0

func (c *HttpClient) PostFormDataRequest(url string, params map[string]string, header map[string]string) (int, map[string]interface{}, error)

func (*HttpClient) PostFormDataWithFilesRequest added in v0.4.0

func (c *HttpClient) PostFormDataWithFilesRequest(url string, params map[string]string, sendFiles []SendFile, header map[string]string) (int, map[string]interface{}, error)

func (*HttpClient) PostSoapRequest added in v0.4.0

func (c *HttpClient) PostSoapRequest(url string, payload []byte, header map[string]string) (int, []byte, error)

func (*HttpClient) SendBodyRequest added in v0.4.0

func (c *HttpClient) SendBodyRequest(method, url, jsonStr string, header map[string]string) (int, map[string]interface{}, error)

func (*HttpClient) SendFormDataRequest added in v0.4.0

func (c *HttpClient) SendFormDataRequest(method, url string, params map[string]string, header map[string]string) (int, map[string]interface{}, error)

func (*HttpClient) SendFormDataWithFilesRequest added in v0.4.0

func (c *HttpClient) SendFormDataWithFilesRequest(method, url string, params map[string]string, sendFiles []SendFile, header map[string]string) (int, map[string]interface{}, error)

func (*HttpClient) SendQueryRequest added in v0.4.0

func (c *HttpClient) SendQueryRequest(method, url string, params map[string]string, header map[string]string) (int, map[string]interface{}, error)

func (*HttpClient) SendSoapRequest added in v0.4.0

func (c *HttpClient) SendSoapRequest(method, url string, payload []byte, header map[string]string) (int, []byte, error)

type SendFile added in v0.2.8

type SendFile struct {
	ParamName string
	Paths     []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL