Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpClient ¶
type HttpClient struct {
URL string
Method string
Param interface{}
Headers map[string]string
// contains filtered or unexported fields
}
func New ¶
func New(url string) *HttpClient
func (*HttpClient) Get ¶
func (this *HttpClient) Get(result interface{}) error
func (*HttpClient) Post ¶
func (this *HttpClient) Post(data interface{}, result interface{}) error
func (*HttpClient) SetHeaders ¶
func (this *HttpClient) SetHeaders(headers map[string]string) *HttpClient
func (*HttpClient) SetMethod ¶
func (this *HttpClient) SetMethod(method string) *HttpClient
Click to show internal directories.
Click to hide internal directories.