httputil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = &Client{}

Functions

func Get

func Get(url string) (resp *http.Response, err error)

func Post added in v0.2.0

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

func PostForm added in v0.3.0

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

Types

type Client

type Client struct{}

func (*Client) Do

func (*Client) Do(req *http.Request) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(url string) (resp *http.Response, err error)

func (*Client) Post added in v0.2.0

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

func (*Client) PostForm added in v0.3.0

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

Jump to

Keyboard shortcuts

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