Documentation
¶
Index ¶
- type ApiSpec
- type Client
- func (c *Client) ExecuteApi(spec ApiSpec) (err error)
- func (c *Client) ExportCookies(url string) map[string]string
- func (c *Client) Get(url string, headers map[string]string) (body io.ReadCloser, err error)
- func (c *Client) GetContent(url string) (data []byte, err error)
- func (c *Client) GetUserAgent() string
- func (c *Client) ImportCookies(cookies map[string]string, domains ...string)
- func (c *Client) Post(url string, payload Payload) (body io.ReadCloser, err error)
- func (c *Client) SetUserAgent(name string)
- func (c *Client) SetupValve(cdMin, cdMax uint)
- func (c *Client) Touch(url string) error
- type Payload
- type Valve
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiSpec ¶ added in v0.5.1
type ApiSpec interface {
IsCrypto() bool
SetCryptoKey(key string)
Url() string
Payload() Payload
Parse(r io.Reader) (err error)
}
ApiSpec describes the specification of an API.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(hc plugin.HttpClient) *Client
func (*Client) ExecuteApi ¶ added in v0.5.1
func (*Client) GetUserAgent ¶
func (*Client) ImportCookies ¶
func (*Client) SetUserAgent ¶
func (*Client) SetupValve ¶
Click to show internal directories.
Click to hide internal directories.