Documentation ¶
Index ¶
- type Body
- type FormDataValue
- type Group
- type Headers
- type Params
- type PreRequest
- type Request
- func (slf *Request) Add(h map[string]string) *Request
- func (r *Request) Binary(data []byte, contentType ...string) *Request
- func (slf Request) BindJSON(ptr interface{}) ([]byte, kazaana.Error)
- func (slf Request) Do() (*http.Response, kazaana.Error)
- func (r *Request) FormData(f map[string]FormDataValue) *Request
- func (r *Request) JSON(v interface{}) *Request
- func (slf Request) Result() ([]byte, kazaana.Error)
- func (r *Request) Set(p map[string]string) *Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body interface { FormData(f map[string]FormDataValue) *Request JSON(v interface{}) *Request Binary(data []byte, contentType ...string) *Request }
Body body
type FormDataValue ¶
FormDataValue type Text if len(FileData)<=0 || len(FileName)<=0
type Group ¶
type Group struct {
BaseURL func() string
}
Group is used to generate adaptive url path in different environments.
type Params ¶
type Params interface { Set(p map[string]string) *Request // contains filtered or unexported methods }
Params query_params
cover request line
Click to show internal directories.
Click to hide internal directories.