Documentation
¶
Index ¶
- type Client
- func (c *Client) BasicAuth(user, pass string) *Client
- func (c *Client) Clone() *Client
- func (c *Client) ContentForm() *Client
- func (c *Client) ContentJson() *Client
- func (c *Client) ContentType(contentType string) *Client
- func (c *Client) ContentXml() *Client
- func (c *Client) Cookie(m map[string]string) *Client
- func (c *Client) Discovery(discovery gsvc.Discovery) *Client
- func (c *Client) GetBytesErr(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) GetContentErr(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) Header(m map[string]string) *Client
- func (c *Client) HeaderRaw(headers string) *Client
- func (c *Client) NoUrlEncode() *Client
- func (c *Client) PostBytesErr(ctx context.Context, url string, data ...interface{}) ([]byte, error)
- func (c *Client) PostContentErr(ctx context.Context, url string, data ...interface{}) (string, error)
- func (c *Client) Prefix(prefix string) *Client
- func (c *Client) Proxy(proxyURL string) *Client
- func (c *Client) RedirectLimit(redirectLimit int) *Client
- func (c *Client) RequestBytesErr(ctx context.Context, method string, url string, data ...interface{}) ([]byte, error)
- func (c *Client) RequestContentErr(ctx context.Context, method string, url string, data ...interface{}) (string, error)
- func (c *Client) SetErrorFn(errorFn func(ctx context.Context, format string, v ...interface{})) *Client
- func (c *Client) SetErrorLogger(logger *glog.Logger) *Client
- func (c *Client) Timeout(t time.Duration) *Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) ContentForm ¶ added in v0.3.1
func (*Client) ContentJson ¶ added in v0.3.1
func (*Client) ContentType ¶ added in v0.3.1
func (*Client) ContentXml ¶ added in v0.3.1
func (*Client) GetBytesErr ¶ added in v0.2.0
func (*Client) GetContentErr ¶ added in v0.2.0
func (*Client) NoUrlEncode ¶ added in v0.3.1
func (*Client) PostBytesErr ¶ added in v0.2.0
func (*Client) PostContentErr ¶ added in v0.2.0
func (*Client) RedirectLimit ¶ added in v0.3.1
func (*Client) RequestBytesErr ¶ added in v0.2.0
func (*Client) RequestContentErr ¶ added in v0.2.0
func (*Client) SetErrorFn ¶
Click to show internal directories.
Click to hide internal directories.