Documentation ¶
Index ¶
- Constants
- type Client
- func (h *Client) Delete(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte)
- func (h *Client) Get(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte)
- func (h *Client) Post(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte)
- func (h *Client) Put(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte)
- func (h *Client) Request(method, u string, params []KeyValue, requestBody interface{}, ...) (err error, code int, respBody []byte)
- type IHttpClient
- type KeyValue
Constants ¶
View Source
const ErrorCode = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type IHttpClient ¶
type IHttpClient interface { Request(method, url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) Get(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) Post(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) Delete(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) Put(url string, params []KeyValue, body interface{}, header []KeyValue) (error, int, []byte) }
Click to show internal directories.
Click to hide internal directories.