Documentation ¶
Overview ¶
Package http 提供基础 http 客户端组件 内置以下功能: - logging - opentracing - prometheus
Index ¶
- func DoHttpFormReq(ctx context.Context, urlStr string, params interface{}, options ...interface{}) (reqResp *http.Response, bodyByte []byte, err error)
- func DoHttpFormUploadReq(ctx context.Context, urlStr, filedName, filename string) (reqResp *http.Response, bodyByte []byte, err error)
- func DoHttpJsonReq(ctx context.Context, urlStr string, params interface{}, options ...interface{}) (reqResp *http.Response, bodyByte []byte, err error)
- func DoHttpReq(ctx context.Context, urlStr string, params interface{}, options ...interface{}) (reqResp *http.Response, bodyByte []byte, err error)
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoHttpFormReq ¶
func DoHttpFormUploadReq ¶
func DoHttpJsonReq ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.