http2client

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 8, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package http2client is a HTTP/2 client library.

Index

Constants

View Source
const (
	VERSION    = "v0.0.12"
	BUILD_DATE = "2016-05-08"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Http2Client

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

func New

func New() *Http2Client

func (*Http2Client) AddFilterForIncomingFrames added in v0.0.9

func (h2c *Http2Client) AddFilterForIncomingFrames(filter func(frames.Frame) frames.Frame)

The filter is called immediately after a frame is read from the server. The filter can be used to inspect and modify the incoming frames. WARNING: The filter will called in another go routine.

func (*Http2Client) AddFilterForOutgoingFrames added in v0.0.9

func (h2c *Http2Client) AddFilterForOutgoingFrames(filter func(frames.Frame) frames.Frame)

The filter is called immediately before a frame is sent to the server. The filter can be used to inspect and modify the outgoing frames. WARNING: The filter will called in another go routine.

func (*Http2Client) Connect

func (h2c *Http2Client) Connect(scheme string, host string, port int) (string, error)

func (*Http2Client) Disconnect added in v0.0.6

func (h2c *Http2Client) Disconnect() (string, error)

func (*Http2Client) Get

func (h2c *Http2Client) Get(path string, includeHeaders bool, timeoutInSeconds int) (string, error)

func (*Http2Client) PingOnce added in v0.0.9

func (h2c *Http2Client) PingOnce() (string, error)

func (*Http2Client) PingRepeatedly added in v0.0.9

func (h2c *Http2Client) PingRepeatedly(interval time.Duration) (string, error)

func (*Http2Client) Post added in v0.0.6

func (h2c *Http2Client) Post(path string, data []byte, includeHeaders bool, timeoutInSeconds int) (string, error)

func (*Http2Client) PushList added in v0.0.8

func (h2c *Http2Client) PushList() (string, error)

func (*Http2Client) Put added in v0.0.9

func (h2c *Http2Client) Put(path string, data []byte, includeHeaders bool, timeoutInSeconds int) (string, error)

func (*Http2Client) SetHeader added in v0.0.4

func (h2c *Http2Client) SetHeader(name, value string) (string, error)

func (*Http2Client) StopPingRepeatedly added in v0.0.9

func (h2c *Http2Client) StopPingRepeatedly() (string, error)

func (*Http2Client) StreamInfo added in v0.0.11

func (h2c *Http2Client) StreamInfo(includeClosedStreams bool) (string, error)

func (*Http2Client) UnsetHeader added in v0.0.5

func (h2c *Http2Client) UnsetHeader(nameValue []string) (string, error)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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