httpx

package
v0.0.0-...-eee59a5 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUrlEncode

func SetUrlEncode(url string) string

Types

type ClientHttp

type ClientHttp struct {
	// contains filtered or unexported fields
}

func NewClientHttp

func NewClientHttp() *ClientHttp

func (*ClientHttp) Debug

func (t *ClientHttp) Debug(debug bool) *ClientHttp

func (*ClientHttp) Get

func (t *ClientHttp) Get(url string, resp interface{}, header map[string]string) (_err error)

func (*ClientHttp) GetParams

func (t *ClientHttp) GetParams(url string, req map[string]string, resp interface{}, header map[string]string) (_err error)

func (*ClientHttp) LogFile

func (t *ClientHttp) LogFile() *ClientHttp

func (*ClientHttp) Post

func (t *ClientHttp) Post(url string, req map[string]string, resp interface{}, header map[string]string) (_err error)

func (*ClientHttp) PostBody

func (t *ClientHttp) PostBody(url string, req, resp interface{}, header map[string]string) (_err error)

func (*ClientHttp) SetTimeout

func (t *ClientHttp) SetTimeout(time_out_second int) *ClientHttp

func (*ClientHttp) UploadFile

func (t *ClientHttp) UploadFile(url string, name_param string, file_path string, params map[string]string, resp interface{}, header map[string]string) (_err error)

func (*ClientHttp) UploadFileFromBytes

func (t *ClientHttp) UploadFileFromBytes(url string, name_param string, file_name string, file_data []byte, params map[string]string, resp interface{}, header map[string]string) (_err error)

type FileLogger

type FileLogger struct {
	// contains filtered or unexported fields
}

func (*FileLogger) Debugf

func (l *FileLogger) Debugf(format string, v ...interface{})

func (*FileLogger) Errorf

func (l *FileLogger) Errorf(format string, v ...interface{})

func (*FileLogger) Warnf

func (l *FileLogger) Warnf(format string, v ...interface{})

Jump to

Keyboard shortcuts

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