Versions in this module Expand all Collapse all v1 v1.13.12 Feb 9, 2025 Changes in this version + var DefaultClient = Client + var ErrInvalidRequestURL = errors.New("invalid request url") + var UserAgent = "Golang qiniu/rpc package" + 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 struct + 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 struct + Code int + Err string + Errno int + Key string + Reqid string + func (r *ErrorInfo) Error() string + func (r *ErrorInfo) ErrorDetail() string + func (r *ErrorInfo) HttpCode() int + func (r *ErrorInfo) RpcError() (code, errno int, key, err string)