implement Remove

This commit is contained in:
Christoph Polcin
2014-10-23 14:10:31 +02:00
parent a5b6eb39ff
commit d4b8ebb4b2
4 changed files with 38 additions and 1 deletions

View File

@@ -21,6 +21,15 @@ func (c *Client) req(method string, path string, body io.Reader) (req *http.Requ
return req, nil
}
func (c *Client) reqDo(method string, path string, body io.Reader) (*http.Response, error) {
rq, err := c.req(method, path, body)
if err != nil {
return nil, err
}
return c.c.Do(rq)
}
func (c *Client) Options(path string) (*http.Response, error) {
rq, err := c.req("OPTIONS", path, nil)
if err != nil {