Documentation ¶
Index ¶
- func DELETE(url string, options ...SendOption) (*http.Response, error)
- func Get(url string, options ...SendOption) (*http.Response, error)
- func POST(url string, options ...SendOption) (*http.Response, error)
- func PUT(url string, options ...SendOption) (*http.Response, error)
- func Send(method, rawurl string, options ...SendOption) (*http.Response, error)
- type SendOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SendOption ¶
type SendOption func(*sendOptions)
func SendBody ¶
func SendBody(body io.Reader) SendOption
func SendHeaders ¶
func SendHeaders(headers map[string]string) SendOption
func SendRetry ¶
func SendRetry(times int) SendOption
func SendTimeout ¶
func SendTimeout(timeout time.Duration) SendOption
Click to show internal directories.
Click to hide internal directories.