- update request

master
李光春 2 years ago
parent bc1a991f60
commit eed36cdcea

@ -0,0 +1,12 @@
package gorequest
const (
userAgentFormat = "%s/GO/%s"
)
// 定义请求类型
var (
httpParamsModeJson = "JSON"
httpParamsModeXml = "XML"
httpParamsModeForm = "FORM"
)

@ -16,8 +16,6 @@ import (
"time"
)
var userAgentFormat = "DtApp-Request/%s GO/%s"
// Response 返回内容
type Response struct {
RequestUri string //【请求】链接
@ -47,13 +45,6 @@ type App struct {
p12Cert *tls.Certificate // p12证书内容
}
// 定义
var (
httpParamsModeJson = "JSON"
httpParamsModeXml = "XML"
httpParamsModeForm = "FORM"
)
// NewHttp 实例化
func NewHttp() *App {
return &App{

Loading…
Cancel
Save