Documentation ¶
Index ¶
- type Client
- type HTTP
- func (h *HTTP) Delete(url string, body interface{}, header map[string]string) (Response, error)
- func (h *HTTP) Get(url string, query interface{}, header map[string]string) (Response, error)
- func (h *HTTP) Patch(url string, body interface{}, header map[string]string) (Response, error)
- func (h *HTTP) Post(url string, body interface{}, header map[string]string) (Response, error)
- func (h *HTTP) Put(url string, body interface{}, header map[string]string) (Response, error)
- func (h *HTTP) Request(method, url string, body interface{}, header map[string]string) (Response, error)
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Get(url string, query interface{}, header map[string]string) (Response, error) Post(url string, body interface{}, header map[string]string) (Response, error) Put(url string, body interface{}, header map[string]string) (Response, error) Patch(url string, body interface{}, header map[string]string) (Response, error) Delete(url string, body interface{}, header map[string]string) (Response, error) Request(method string, url string, body interface{}, header map[string]string) (Response, error) }
Client is an Adapter for resty client
type HTTP ¶ added in v1.4.0
type HTTP struct {
// contains filtered or unexported fields
}
HTTP client
Click to show internal directories.
Click to hide internal directories.