Documentation ¶
Index ¶
- func Base64(fileName string) string
- func ParseJson(req string) (map[string]interface{}, error)
- type NormalReq
- func (request *NormalReq) AddFilePara(key, fileName string)
- func (request *NormalReq) AddHeadPara(key, value string)
- func (request *NormalReq) AddTextPara(key, value string)
- func (request *NormalReq) Get() (string, error)
- func (request *NormalReq) Post() (string, error)
- func (request *NormalReq) SetConnectTimeOut(connectTimeOut time.Duration)
- func (request *NormalReq) SetReadTimeOut(readTimeOut time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NormalReq ¶
type NormalReq struct {
// contains filtered or unexported fields
}
func (*NormalReq) AddFilePara ¶
func (*NormalReq) AddHeadPara ¶
func (*NormalReq) AddTextPara ¶
func (*NormalReq) SetConnectTimeOut ¶
func (*NormalReq) SetReadTimeOut ¶
Click to show internal directories.
Click to hide internal directories.