Versions in this module Expand all Collapse all v1 v1.1.0 Dec 18, 2016 Changes in this version + type BodyProvider interface + Body func() (io.Reader, error) + ContentType func() string + type Doer interface + Do func(req *http.Request) (*http.Response, error) + type Sling struct + func New() *Sling + func (s *Sling) Add(key, value string) *Sling + func (s *Sling) Base(rawURL string) *Sling + func (s *Sling) Body(body io.Reader) *Sling + func (s *Sling) BodyForm(bodyForm interface{}) *Sling + func (s *Sling) BodyJSON(bodyJSON interface{}) *Sling + func (s *Sling) BodyProvider(body BodyProvider) *Sling + func (s *Sling) Client(httpClient *http.Client) *Sling + func (s *Sling) Delete(pathURL string) *Sling + func (s *Sling) Do(req *http.Request, successV, failureV interface{}) (*http.Response, error) + func (s *Sling) Doer(doer Doer) *Sling + func (s *Sling) Get(pathURL string) *Sling + func (s *Sling) Head(pathURL string) *Sling + func (s *Sling) New() *Sling + func (s *Sling) Patch(pathURL string) *Sling + func (s *Sling) Path(path string) *Sling + func (s *Sling) Post(pathURL string) *Sling + func (s *Sling) Put(pathURL string) *Sling + func (s *Sling) QueryStruct(queryStruct interface{}) *Sling + func (s *Sling) Receive(successV, failureV interface{}) (*http.Response, error) + func (s *Sling) ReceiveSuccess(successV interface{}) (*http.Response, error) + func (s *Sling) Request() (*http.Request, error) + func (s *Sling) Set(key, value string) *Sling + func (s *Sling) SetBasicAuth(username, password string) *Sling