Documentation ¶
Index ¶
- type CookieRequest
- func (c *CookieRequest) Get(url string, params map[string]interface{}) (string, error)
- func (c *CookieRequest) GetJson(url string, params map[string]interface{}, dataOut interface{}) error
- func (c *CookieRequest) Post(url string, params map[string]interface{}, data map[string]interface{}, ...) (string, error)
- func (c *CookieRequest) PostJson(url string, params map[string]interface{}, data map[string]interface{}, ...) error
- func (c *CookieRequest) SetHeaders(headers map[string]string)
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieRequest ¶
type CookieRequest struct {
// contains filtered or unexported fields
}
func NewCookieRequest ¶
func NewCookieRequest() *CookieRequest
func (*CookieRequest) Get ¶
func (c *CookieRequest) Get(url string, params map[string]interface{}) (string, error)
func (*CookieRequest) GetJson ¶
func (c *CookieRequest) GetJson(url string, params map[string]interface{}, dataOut interface{}) error
func (*CookieRequest) SetHeaders ¶
func (c *CookieRequest) SetHeaders(headers map[string]string)
type Request ¶
type Request interface { Get(string, map[string]interface{}) (string, error) GetJson(string, map[string]interface{}, interface{}) error Post(string, map[string]interface{}, map[string]interface{}, []byte, bool) (string, error) PostJson(string, map[string]interface{}, map[string]interface{}, []byte, bool, interface{}) error SetHeaders(map[string]string) }
Click to show internal directories.
Click to hide internal directories.