Documentation
¶
Index ¶
- Variables
- func CallRet(ctx Context, ret interface{}, resp *http.Response) (err error)
- func NewRequest(method, url1 string, body io.Reader) (req *http.Request, err error)
- func ResponseError(resp *http.Response) (err error)
- type Client
- func (r Client) Call(ctx Context, ret interface{}, method, url1 string) (err error)
- func (r Client) CallWith(ctx Context, ret interface{}, method, url1, bodyType string, body io.Reader, ...) (err error)
- func (r Client) CallWith64(ctx Context, ret interface{}, method, url1, bodyType string, body io.Reader, ...) (err error)
- func (r Client) CallWithForm(ctx Context, ret interface{}, method, url1 string, param map[string][]string) (err error)
- func (r Client) CallWithJson(ctx Context, ret interface{}, method, url1 string, param interface{}) (err error)
- func (r Client) Do(ctx Context, req *http.Request) (resp *http.Response, err error)
- func (r Client) DoRequest(ctx Context, method, url string) (resp *http.Response, err error)
- func (r Client) DoRequestWith(ctx Context, method, url1 string, bodyType string, body io.Reader, ...) (resp *http.Response, err error)
- func (r Client) DoRequestWith64(ctx Context, method, url1 string, bodyType string, body io.Reader, ...) (resp *http.Response, err error)
- func (r Client) DoRequestWithForm(ctx Context, method, url1 string, data map[string][]string) (resp *http.Response, err error)
- func (r Client) DoRequestWithJson(ctx Context, method, url1 string, data interface{}) (resp *http.Response, err error)
- type ErrorInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultClient = Client{&http.Client{Transport: http.DefaultTransport}}
)
View Source
var (
ErrInvalidRequestURL = errors.New("invalid request url")
)
View Source
var (
UserAgent = "Golang qiniu/rpc package"
)
Functions ¶
func NewRequest ¶
func ResponseError ¶
Types ¶
type Client ¶
func (Client) CallWith64 ¶
func (Client) CallWithForm ¶
func (Client) CallWithJson ¶
func (Client) DoRequestWith ¶
func (Client) DoRequestWith64 ¶
func (Client) DoRequestWithForm ¶
Click to show internal directories.
Click to hide internal directories.