Documentation ¶
Overview ¶
Package http is a clone of net/http for GopherJS. It replicates most of the net/http.Client API, using XHR in the background, and making use of actual types from the net/http package, such as net/http.Request and net/http.Response.
At this moment, the future of this package is not yet certain. Better solutions might present themselves, in which case this package will be removed and replaced with something better. Use at your own risk.
Index ¶
- Variables
- func Get(url string) (*http.Response, error)
- func Head(url string) (*http.Response, error)
- func Post(url string, bodyType string, body io.Reader) (*http.Response, error)
- type Client
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) Get(url string) (*http.Response, error)
- func (c *Client) Head(url string) (*http.Response, error)
- func (c *Client) Post(url string, bodyType string, body io.Reader) (*http.Response, error)
- func (c *Client) PostForm(url string, data url.Values) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = Client{}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.