Documentation ¶
Index ¶
- func GetURLAsBytes(url string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, []byte, error)
- func GetURLAsString(url string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, string, error)
- func PostBinary(url string, readPath string, headers map[string]interface{}, ...) (*http.Response, string, error)
- func PostJSON(url string, data map[string]interface{}, headers map[string]interface{}, ...) (*http.Response, string, error)
- func PostURL(url string, data string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetURLAsBytes ¶
func GetURLAsBytes(url string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, []byte, error)
GetURLAsBytes will fetch a url, headers, and a bool for ignoring ssl errors. this returns an http response object, the body as a string, and an error
func GetURLAsString ¶
func GetURLAsString(url string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, string, error)
GetURLAsString will fetch a url and return an http response object, the body as a string, and an error
func PostBinary ¶
func PostBinary(url string, readPath string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, string, error)
PostBinary posts the specified data to a url endpoint as application/octet-stream data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.