Documentation ¶
Index ¶
- type ClientWrapper
- func (c *ClientWrapper) Do(req *http.Request) (resp *http.Response, err error)
- func (c *ClientWrapper) Get(url string) (resp *http.Response, err error)
- func (c *ClientWrapper) Head(url string) (resp *http.Response, err error)
- func (c *ClientWrapper) Post(url string, contentType string, body io.Reader) (resp *http.Response, err error)
- func (c *ClientWrapper) PostForm(url string, data url.Values) (resp *http.Response, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientWrapper ¶
ClientWrapper is Epsagon's wrapper for http.Client
func Wrap ¶
func Wrap(c http.Client) ClientWrapper
Wrap wraps an http.Client to Epsagon's ClientWrapper
func (*ClientWrapper) Get ¶
func (c *ClientWrapper) Get(url string) (resp *http.Response, err error)
Get wraps http.Client.Get
func (*ClientWrapper) Head ¶
func (c *ClientWrapper) Head(url string) (resp *http.Response, err error)
Head wraps http.Client.Head
Click to show internal directories.
Click to hide internal directories.