client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 13 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 {
	Config
	// contains filtered or unexported fields
}

Client is a http2 client

func New

func New(cfg Config) (*Client, error)

New returns a new client

func (*Client) Run

func (c *Client) Run() error

Run launches a client

type Config

type Config struct {
	Addr     string
	Method   string
	Insecure bool
	Headers  []string
	Data     string
	Hex      bool
}

Config of the http2 client

Jump to

Keyboard shortcuts

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