Documentation ¶
Index ¶
- func Delete(url string, bodyType string, body io.Reader) (*http.Response, error)
- func DeleteForm(url string, data url.Values) (*http.Response, error)
- func Get(url string) (*http.Response, error)
- func Head(url string) (*http.Response, error)
- func NewHTTPClient() *http.Client
- func Post(url string, bodyType string, body io.Reader) (*http.Response, error)
- func PostForm(url string, data url.Values) (*http.Response, error)
- func Put(url string, bodyType string, body io.Reader) (*http.Response, error)
- func PutForm(url string, data url.Values) (*http.Response, error)
- func ReadBody(resp *http.Response) []byte
- func ReadBodyJSON(resp *http.Response) map[string]interface{}
- func RunServer(f func(*server.Server))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
Creates a new HTTP client with KeepAlive disabled.
func ReadBodyJSON ¶
Reads the body from the response and parses it as JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.