gclientx

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 6 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *gclient.Client
	// contains filtered or unexported fields
}

func New

func New(client ...*gclient.Client) *Client

func (*Client) BasicAuth added in v0.3.1

func (c *Client) BasicAuth(user, pass string) *Client

func (*Client) Clone added in v0.3.1

func (c *Client) Clone() *Client

func (*Client) ContentForm added in v0.3.1

func (c *Client) ContentForm() *Client

func (*Client) ContentJson added in v0.3.1

func (c *Client) ContentJson() *Client

func (*Client) ContentType added in v0.3.1

func (c *Client) ContentType(contentType string) *Client

func (*Client) ContentXml added in v0.3.1

func (c *Client) ContentXml() *Client

func (*Client) Cookie added in v0.3.1

func (c *Client) Cookie(m map[string]string) *Client

func (*Client) Discovery added in v0.3.1

func (c *Client) Discovery(discovery gsvc.Discovery) *Client

func (*Client) GetBytesErr added in v0.2.0

func (c *Client) GetBytesErr(ctx context.Context, url string, data ...interface{}) ([]byte, error)

func (*Client) GetContentErr added in v0.2.0

func (c *Client) GetContentErr(ctx context.Context, url string, data ...interface{}) (string, error)

func (*Client) Header added in v0.3.1

func (c *Client) Header(m map[string]string) *Client

func (*Client) HeaderRaw added in v0.3.1

func (c *Client) HeaderRaw(headers string) *Client

func (*Client) NoUrlEncode added in v0.3.1

func (c *Client) NoUrlEncode() *Client

func (*Client) PostBytesErr added in v0.2.0

func (c *Client) PostBytesErr(ctx context.Context, url string, data ...interface{}) ([]byte, error)

func (*Client) PostContentErr added in v0.2.0

func (c *Client) PostContentErr(ctx context.Context, url string, data ...interface{}) (string, error)

func (*Client) Prefix added in v0.3.1

func (c *Client) Prefix(prefix string) *Client

func (*Client) Proxy added in v0.3.1

func (c *Client) Proxy(proxyURL string) *Client

func (*Client) RedirectLimit added in v0.3.1

func (c *Client) RedirectLimit(redirectLimit int) *Client

func (*Client) RequestBytesErr added in v0.2.0

func (c *Client) RequestBytesErr(ctx context.Context, method string, url string, data ...interface{}) ([]byte, error)

func (*Client) RequestContentErr added in v0.2.0

func (c *Client) RequestContentErr(ctx context.Context, method string, url string, data ...interface{}) (string, error)

func (*Client) SetErrorFn

func (c *Client) SetErrorFn(errorFn func(ctx context.Context, format string, v ...interface{})) *Client

func (*Client) SetErrorLogger

func (c *Client) SetErrorLogger(logger *glog.Logger) *Client

func (*Client) Timeout added in v0.3.1

func (c *Client) Timeout(t time.Duration) *Client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL