Documentation ¶
Index ¶
- Constants
- type File
- type JSON
- type JSONResponse
- type Request
- func (r *Request) Delete() *Response
- func (r *Request) Get() *Response
- func (r *Request) MultiPartPost(body interface{}, files ...File) (*Response, error)
- func (r *Request) MultiPartPut(body interface{}, files ...File) (*Response, error)
- func (r *Request) Post(body interface{}) *Response
- func (r *Request) Put(body interface{}) *Response
- func (r *Request) SetBasicAuth(username, password string)
- type Response
- type Willie
- type XML
- type XMLResponse
Constants ¶
View Source
const Version = "v1.0.9"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct { URL string Willie *Willie Headers map[string]string Username string Password string }
func (*JSON) Delete ¶
func (r *JSON) Delete() *JSONResponse
func (*JSON) Get ¶
func (r *JSON) Get() *JSONResponse
func (*JSON) Patch ¶
func (r *JSON) Patch(body interface{}) *JSONResponse
func (*JSON) Post ¶
func (r *JSON) Post(body interface{}) *JSONResponse
func (*JSON) Put ¶
func (r *JSON) Put(body interface{}) *JSONResponse
type JSONResponse ¶
type JSONResponse struct {
*Response
}
func (*JSONResponse) Bind ¶
func (r *JSONResponse) Bind(x interface{})
type Request ¶
type Request struct { URL string Willie *Willie Headers map[string]string Username string Password string }
func (*Request) MultiPartPost ¶
func (*Request) MultiPartPut ¶
func (*Request) SetBasicAuth ¶
type XML ¶
func (*XML) Delete ¶
func (r *XML) Delete() *XMLResponse
func (*XML) Get ¶
func (r *XML) Get() *XMLResponse
func (*XML) Patch ¶
func (r *XML) Patch(body interface{}) *XMLResponse
func (*XML) Post ¶
func (r *XML) Post(body interface{}) *XMLResponse
func (*XML) Put ¶
func (r *XML) Put(body interface{}) *XMLResponse
type XMLResponse ¶
type XMLResponse struct {
*Response
}
func (*XMLResponse) Bind ¶
func (r *XMLResponse) Bind(x interface{})
Source Files ¶
Click to show internal directories.
Click to hide internal directories.