httpclient

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

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
}

func New

func New(cfg *config.Resource) (*Client, error)

func (*Client) Close added in v1.4.1

func (c *Client) Close() error

Close satisfies resource interface

func (*Client) Open added in v1.4.1

func (c *Client) Open() error

Open satisfies resource interface

func (*Client) Ready

func (c *Client) Ready() error

func (*Client) Request

func (c *Client) Request(method, path string, body []byte) error

func (*Client) RequestFromFile added in v1.4.1

func (c *Client) RequestFromFile(method, path, fileName string) error

func (*Client) Reset

func (c *Client) Reset() error

func (*Client) Response

func (c *Client) Response() (int, http.Header, []byte, error)

func (*Client) SetRequestHeader

func (c *Client) SetRequestHeader(key, value string) error

Jump to

Keyboard shortcuts

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