Documentation ¶
Index ¶
- type Client
- type Factory
- type IDiscoveryClientFactory
- type IFactory
- type Request
- func (c *Request) AddFile(name string, filePath string) *Request
- func (c *Request) ClearParam() *Request
- func (c *Request) ContentType(value string) *Request
- func (c *Request) DisableKeepAlives() *Request
- func (c *Request) Error() error
- func (c *Request) FormParams(obj map[string]interface{}) *Request
- func (c *Request) GET(url string) *Request
- func (c *Request) GetUrl() string
- func (c *Request) Header(key, value string) *Request
- func (c *Request) POST(url string) *Request
- func (c *Request) SetTimeout(timeout int) *Request
- func (c *Request) SkipHttps() *Request
- func (c *Request) WithBody(bodyStream string) *Request
- func (c *Request) WithCookie() *Request
- func (c *Request) WithHost(host string) *Request
- type Response
- type UploadFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseUrl string // contains filtered or unexported fields }
type IDiscoveryClientFactory ¶ added in v1.6.7
func NewDiscoveryClientFactory ¶ added in v1.6.7
func NewDiscoveryClientFactory(selector servicediscovery.ISelector) IDiscoveryClientFactory
type IFactory ¶ added in v1.6.7
func NewFactory ¶ added in v1.6.7
func NewFactory() IFactory
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func WithFormRequest ¶ added in v1.6.7
WithFormRequest 快速配置表单请求类型
func WithJsonRequest ¶ added in v1.6.7
WithFormRequest 快速配置表单请求类型
func WithRequest ¶ added in v1.6.7
func WithRequest() *Request
func (*Request) ContentType ¶
func (*Request) DisableKeepAlives ¶
DisableKeepAlives 关闭KeepAlives
func (*Request) FormParams ¶
参数设置 表单请求支持json和form两种类型
func (*Request) SetTimeout ¶
type Response ¶
type Response struct { Body []byte // response body BodyRaw *http.Response RequestTime time.Duration CookieData map[string]*http.Cookie }
func (*Response) GetRequestTime ¶
type UploadFile ¶
Click to show internal directories.
Click to hide internal directories.