Documentation
¶
Index ¶
- Constants
- type BasicAuthInfo
- type Request
- func (r *Request) Body(body interface{}) *Request
- func (r *Request) Cookie(cookie *http.Cookie) *Request
- func (r *Request) Execute() (*http.Response, error)
- func (r *Request) FormParam(key, value string) *Request
- func (r *Request) Header(key, value string) *Request
- func (r *Request) Into(response interface{}) *Request
- func (r *Request) SetBasicAuth(username, password string) *Request
- func (r *Request) URL() string
- func (r *Request) URLParam(key, value string) *Request
- type ResponseError
- type Wrecker
Constants ¶
View Source
const ( GET = "GET" POST = "POST" PUT = "PUT" PATCH = "PATCH" DELETE = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthInfo ¶ added in v0.1.0
type Request ¶
type Request struct {
HttpVerb string
Endpoint string
Response interface{}
URLParams url.Values
FormParams url.Values
HttpBody interface{}
Headers map[string]string
Cookies []*http.Cookie
BasicAuthInfo *BasicAuthInfo
WreckerClient *Wrecker
}
func (*Request) SetBasicAuth ¶ added in v0.1.0
type ResponseError ¶ added in v0.1.3
func (ResponseError) Error ¶ added in v0.1.3
func (r ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.