webcli

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: BSD-3-Clause Imports: 8 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 NewClient

func NewClient() *Client

NewClient ...

func NewCustomClient

func NewCustomClient(cli *http.Client) *Client

NewCustomClient ...

func (*Client) Call

func (v *Client) Call(pool proto.Pooler, in *proto.Request, out *proto.Response) error

Call make request to server

func (*Client) Debug

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

Debug enable logging of responses

func (*Client) WithHeaders

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

WithHeaders ...

Jump to

Keyboard shortcuts

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