Documentation ¶
Index ¶
- type RestClient
- func (c *RestClient) Client() *http.Client
- func (c *RestClient) Get(url string) error
- func (c *RestClient) GetWithBytes(url string, byteData []byte) error
- func (c *RestClient) LastResponseBody() []byte
- func (c *RestClient) LastResponseStatus() int
- func (c *RestClient) Post(url string, data io.Reader) error
- func (c *RestClient) PostJson(url string, data interface{}) error
- func (c *RestClient) PostString(url string, data string) error
- func (c *RestClient) Put(url string, data io.Reader) error
- func (c *RestClient) PutJson(url string, data interface{}) error
- func (c *RestClient) PutString(url string, data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestClient ¶
func NewRestClient ¶
func NewRestClient() *RestClient
func (*RestClient) Client ¶
func (c *RestClient) Client() *http.Client
func (*RestClient) Get ¶
func (c *RestClient) Get(url string) error
func (*RestClient) GetWithBytes ¶
func (c *RestClient) GetWithBytes(url string, byteData []byte) error
func (*RestClient) LastResponseBody ¶
func (c *RestClient) LastResponseBody() []byte
func (*RestClient) LastResponseStatus ¶
func (c *RestClient) LastResponseStatus() int
func (*RestClient) PostJson ¶
func (c *RestClient) PostJson(url string, data interface{}) error
func (*RestClient) PostString ¶
func (c *RestClient) PostString(url string, data string) error
func (*RestClient) PutJson ¶
func (c *RestClient) PutJson(url string, data interface{}) error
Click to show internal directories.
Click to hide internal directories.