h2

package module
v0.0.0-...-b845c4f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 6 Imported by: 0

README

h2

A stream aware http2 library.

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 Handshake

func Handshake(ctx context.Context, conn io.ReadWriteCloser, opts *ConnectOptions) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

type ConnectOptions

type ConnectOptions struct {
	InitialWindowSize         uint32
	InitialConnWindowSize     uint32
	MaxFrameSize              uint32
	MaxHeaderListSize         *uint32
	MaxConcurrentStreams      uint32
	InitialMaxSendStreams     uint32
	MaxConcurrentResetStreams uint32
	EnablePush                bool
}

ConnectOptions options for http2 connect with the server.

type State

type State int

type Stream

type Stream struct{}

Jump to

Keyboard shortcuts

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