Documentation
¶
Index ¶
- type HttpRequest
- func (hr *HttpRequest) Get(url string, header map[string]string, params map[string]interface{}) ([]byte, error)
- func (hr *HttpRequest) Post(url string, header map[string]string, params map[string]interface{}) ([]byte, error)
- func (hr *HttpRequest) PostMultipart(url string, header map[string]string, payload *bytes.Buffer) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpRequest ¶
type HttpRequest struct{}
func (*HttpRequest) Get ¶
func (hr *HttpRequest) Get(url string, header map[string]string, params map[string]interface{}) ([]byte, error)
Get http get
func (*HttpRequest) Post ¶
func (hr *HttpRequest) Post(url string, header map[string]string, params map[string]interface{}) ([]byte, error)
Post http post
func (*HttpRequest) PostMultipart ¶
func (hr *HttpRequest) PostMultipart(url string, header map[string]string, payload *bytes.Buffer) ([]byte, error)
PostMultipart http post multipart
Click to show internal directories.
Click to hide internal directories.