Documentation ¶
Index ¶
- type EzClient
- func (c *EzClient) FileGet(url, path string) (int, error)
- func (c *EzClient) JSON(j interface{}) *EzClient
- func (c *EzClient) JSONGet(url string, out interface{}) (int, error)
- func (c *EzClient) JSONPost(url string, out interface{}) (int, error)
- func (c *EzClient) JSONStr(j string) *EzClient
- func (c *EzClient) PostFile(url, filepath, formName string, params map[string]string) (int, error, string)
- func (c *EzClient) PostFileBytes(url, filepath, formName string, contents []byte, params map[string]string) (int, error, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EzClient ¶
EzClient is a container for the http requests.
func NewSSLClient ¶
func NewSSLClient() *EzClient
NewSSLClient creates a new SSL client but skips verification.
func (*EzClient) JSONStr ¶
JSONStr takes a string formatted as JSON and makes it available for POST and PUT.
Click to show internal directories.
Click to hide internal directories.