Documentation ¶
Index ¶
- type GetOptions
- type HttpClient
- func (h *HttpClient) Get(url string, data map[string]string, options GetOptions) (body []byte, err error)
- func (h *HttpClient) PostForm(url string, data map[string]string, options PostOptions) (body []byte, err error)
- func (h *HttpClient) PostJson(url string, data interface{}, options PostOptions) (body []byte, err error)
- type PostOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetOptions ¶
type HttpClient ¶
type HttpClient struct { }
func NewHttpClient ¶
func NewHttpClient() *HttpClient
func (*HttpClient) Get ¶
func (h *HttpClient) Get(url string, data map[string]string, options GetOptions) (body []byte, err error)
func (*HttpClient) PostForm ¶
func (h *HttpClient) PostForm(url string, data map[string]string, options PostOptions) (body []byte, err error)
func (*HttpClient) PostJson ¶
func (h *HttpClient) PostJson(url string, data interface{}, options PostOptions) (body []byte, err error)
type PostOptions ¶
Click to show internal directories.
Click to hide internal directories.