Documentation ¶
Index ¶
- func BinaryReader(data []byte) *bytes.Reader
- func DataReader(data any) io.Reader
- func DoHttp(url string, method string, data any, headers map[string]string) string
- func DoHttpBase(url string, method string, data any, headers map[string]string) (result io.ReadCloser)
- func DoHttpGen[T any](url string, method string, data any, headers map[string]string) T
- func DownloadFile(url string, ext string) string
- func FormReader(data url.Values) *bytes.Reader
- func JsonReader(data any) *bytes.Reader
- func RequestMultiPart[T any](method, url string, fields []MultipartFormField) T
- func StringReader(data string) *strings.Reader
- type GetRequest
- type MultipartFormField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinaryReader ¶ added in v1.1.3
func DataReader ¶ added in v1.1.1
func DoHttpBase ¶
func DownloadFile ¶ added in v1.1.3
func JsonReader ¶ added in v1.1.1
func RequestMultiPart ¶ added in v1.1.3
func RequestMultiPart[T any](method, url string, fields []MultipartFormField) T
func StringReader ¶ added in v1.1.1
Types ¶
type GetRequest ¶
func (*GetRequest) AddParam ¶
func (p *GetRequest) AddParam(property string, value string) *GetRequest
func (*GetRequest) BuildParams ¶
func (p *GetRequest) BuildParams() string
func (*GetRequest) Init ¶
func (p *GetRequest) Init() *GetRequest
func (*GetRequest) InitFrom ¶
func (p *GetRequest) InitFrom(reqParams *GetRequest) *GetRequest
type MultipartFormField ¶ added in v1.1.8
Click to show internal directories.
Click to hide internal directories.