Documentation ¶
Overview ¶
Package http2client is a HTTP/2 client library.
Index ¶
- Constants
- type Http2Client
- func (h2c *Http2Client) AddFilterForIncomingFrames(filter func(frames.Frame) frames.Frame)
- func (h2c *Http2Client) AddFilterForOutgoingFrames(filter func(frames.Frame) frames.Frame)
- func (h2c *Http2Client) Connect(scheme string, host string, port int) (string, error)
- func (h2c *Http2Client) Disconnect() (string, error)
- func (h2c *Http2Client) Get(path string, includeHeaders bool, timeoutInSeconds int) (string, error)
- func (h2c *Http2Client) PingOnce() (string, error)
- func (h2c *Http2Client) PingRepeatedly(interval time.Duration) (string, error)
- func (h2c *Http2Client) Post(path string, data []byte, includeHeaders bool, timeoutInSeconds int) (string, error)
- func (h2c *Http2Client) PushList() (string, error)
- func (h2c *Http2Client) Put(path string, data []byte, includeHeaders bool, timeoutInSeconds int) (string, error)
- func (h2c *Http2Client) SetHeader(name, value string) (string, error)
- func (h2c *Http2Client) StopPingRepeatedly() (string, error)
- func (h2c *Http2Client) StreamInfo(includeClosedStreams bool) (string, error)
- func (h2c *Http2Client) UnsetHeader(nameValue []string) (string, error)
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) Disconnect ¶ added in v0.0.6
func (h2c *Http2Client) Disconnect() (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) PushList ¶ added in v0.0.8
func (h2c *Http2Client) PushList() (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)
Click to show internal directories.
Click to hide internal directories.