epsagonhttp

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWrapper

type ClientWrapper struct {
	http.Client
}

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) Do

func (c *ClientWrapper) Do(req *http.Request) (resp *http.Response, err error)

Do wraps http.Client's Do

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

func (*ClientWrapper) Post

func (c *ClientWrapper) Post(
	url string, contentType string, body io.Reader) (resp *http.Response, err error)

Post wraps http.Client.Post

func (*ClientWrapper) PostForm

func (c *ClientWrapper) PostForm(
	url string, data url.Values) (resp *http.Response, err error)

PostForm wraps http.Client.PostForm

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL