Documentation ¶
Index ¶
- Variables
- func AsyncDelete(url string, headers map[string]string, body io.Reader, ch chan<- *Response, ...)
- func AsyncGet(url string, headers map[string]string, ch chan<- *Response, chErr chan<- error, ...)
- func AsyncPost(url string, headers map[string]string, body io.Reader, ch chan<- *Response, ...)
- func AsyncPut(url string, headers map[string]string, body io.Reader, ch chan<- *Response, ...)
- func AsyncRequest(method, url string, headers map[string]string, body io.Reader, ...)
- type Request
- type Response
- func Delete(url string, headers map[string]string, body io.Reader) (*Response, error)
- func Get(url string, headers map[string]string) (*Response, error)
- func Post(url string, headers map[string]string, body io.Reader) (*Response, error)
- func Put(url string, headers map[string]string, body io.Reader) (*Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &http.Client{Timeout: time.Second * 10}
Functions ¶
func AsyncDelete ¶
func AsyncDelete(url string, headers map[string]string, body io.Reader, ch chan<- *Response, chErr chan<- error, chDone chan<- bool)
AsyncDelete sends DELETE requests concurrently
func AsyncGet ¶
func AsyncGet(url string, headers map[string]string, ch chan<- *Response, chErr chan<- error, chDone chan<- bool)
AsyncGet sends GET requests concurrently
func AsyncPost ¶
func AsyncPost(url string, headers map[string]string, body io.Reader, ch chan<- *Response, chErr chan<- error, chDone chan<- bool)
AsyncPost sends POST requests concurrently
Types ¶
Click to show internal directories.
Click to hide internal directories.