Documentation
¶
Index ¶
- Variables
- func DownloadFile(filepath string, uri string) (err error)
- func DownloadZipFile(folder string, name string, uri string) (err error)
- func IsHttpUrl(str string) error
- func IsValidUrl(uri string) bool
- func ReadFile(uri string) (io.ReadCloser, error)
- func Send(logger api.Logger, client *http.Client, bodyType string, method string, ...) (*http.Response, error)
- func SendWithFormData(logger api.Logger, client *http.Client, bodyType string, method string, ...) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var BodyTypeMap = map[string]string{"none": "", "text": "text/plain", "json": "application/json", "html": "text/html", "xml": "application/xml", "javascript": "application/javascript", "form": "application/x-www-form-urlencoded;param=value"}
Functions ¶
func DownloadFile ¶
func DownloadZipFile ¶ added in v2.2.0
func IsValidUrl ¶
func ReadFile ¶
func ReadFile(uri string) (io.ReadCloser, error)
ReadFile Need to close the return reader
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.