package tests
import "github.com/coreos/etcd/tests"
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))
Functions ¶
func Delete ¶
func DeleteForm ¶
func Get ¶
func Head ¶
func NewHTTPClient ¶
Creates a new HTTP client with KeepAlive disabled.
func Post ¶
func PostForm ¶
func Put ¶
func PutForm ¶
func ReadBody ¶
Reads the body from the response and closes it.
func ReadBodyJSON ¶
Reads the body from the response and parses it as JSON.
func RunServer ¶
Starts a new server.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
tests/functional | |
tests/mock |
- Version
- v0.4.9
- Published
- Mar 31, 2015
- Platform
- darwin/amd64
- Imports
- 10 packages
- Last checked
- 3 hours ago –
Tools for package owners.