Documentation ¶
Index ¶
- func DownloadFile(url string, dest *os.File, headers http.Header) (bool, error)
- func Get(url string, headers http.Header) (*http.Response, error)
- func GetPageHTML(url string, headers http.Header) (string, error)
- func Init()
- func Post(url string, body interface{}, headers http.Header) (*http.Response, error)
- func PostFormURLEncoded(url string, body url.Values, target interface{}) error
- type CustomHTTPClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
DownloadFile - Download one file
Types ¶
type CustomHTTPClient ¶
CustomHTTPClient - Custom http client required to make requests testable
var (
HttpClient CustomHTTPClient
)
Click to show internal directories.
Click to hide internal directories.