web

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client ...

func New

func New() *Client

func NewCustom

func NewCustom(cli *http.Client) *Client

func (*Client) Call

func (v *Client) Call(method, uri string, body []byte) (int, []byte, error)

Call make request to server

func (*Client) CallPool

func (v *Client) CallPool(pool pool.PoolGetter, method, uri string, body []byte) (int, []byte, error)

CallPool make request to pool of server

func (*Client) Debug

func (v *Client) Debug(is bool, w io.Writer)

Debug enable logging of responses

func (*Client) WithAuth

func (v *Client) WithAuth(s signature.SignGetter)

WithAuth sitting auth

func (*Client) WithHeaders

func (v *Client) WithHeaders(heads http.Header)

WithHeaders setting headers

Jump to

Keyboard shortcuts

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