Documentation ¶
Index ¶
- type HttpClient
- func (h *HttpClient) Delete(requestData RequestData, responseData ResponseData) error
- func (h *HttpClient) Get(requestData RequestData, responseData ResponseData) error
- func (h *HttpClient) Post(requestData RequestData, responseData ResponseData) error
- func (h *HttpClient) Upload(requestData RequestData, responseData ResponseData, filename string) error
- type RequestData
- type ResponseData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
// contains filtered or unexported fields
}
func (*HttpClient) Delete ¶
func (h *HttpClient) Delete(requestData RequestData, responseData ResponseData) error
func (*HttpClient) Get ¶
func (h *HttpClient) Get(requestData RequestData, responseData ResponseData) error
func (*HttpClient) Post ¶
func (h *HttpClient) Post(requestData RequestData, responseData ResponseData) error
func (*HttpClient) Upload ¶
func (h *HttpClient) Upload(requestData RequestData, responseData ResponseData, filename string) error
type ResponseData ¶
type ResponseData interface { Decode(body io.ReadCloser) error SetBody(body io.ReadCloser) SetStatusCode(code int) }
Click to show internal directories.
Click to hide internal directories.