package
0.1.0
Repository: https://github.com/yosmudge/graphatmo.git
Documentation: pkg.go.dev

# README

This is a work-in-progress HTTP/2 implementation for Go.

It will eventually live in the Go standard library and won't require any changes to your code to use. It will just be automatic.

Status:

  • The server support is pretty good. A few things are missing but are being worked on.
  • The client work has just started but shares a lot of code is coming along much quicker.

Docs are at https://godoc.org/golang.org/x/net/http2

Demo test server at https://http2.golang.org/

Help & bug reports welcome!

Contributing: https://golang.org/doc/contribute.html Bugs: https://golang.org/issue/new?title=x/net/http2:+

# Packages

The h2i command is an interactive HTTP/2 console.
Package hpack implements HPACK, a compression format for efficiently representing HTTP header fields in the context of HTTP/2.

# Functions

ConfigureServer adds HTTP/2 support to a net/http Server.
ConfigureTransport configures a net/http HTTP/1 Transport to use HTTP/2.
NewFramer returns a Framer that writes frames to w and reads them from r.
ReadFrameHeader reads 9 bytes from r and returns a FrameHeader.

# Constants

ClientPreface is the string that must be sent by new connections from clients.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Continuation Frame.
Data Frame.
Frame-specific FrameHeader flag bits.
Frame-specific FrameHeader flag bits.
Headers Frame.
Frame-specific FrameHeader flag bits.
Frame-specific FrameHeader flag bits.
Ping Frame.
Frame-specific FrameHeader flag bits.
Frame-specific FrameHeader flag bits.
Settings Frame.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NextProtoTLS is the NPN/ALPN protocol negotiated during HTTP/2's TLS setup.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
ErrFrameTooLarge is returned from Framer.ReadFrame when the peer sends a frame that is larger than declared with SetMaxReadFrameSize.
No description provided by the author
No description provided by the author

# Structs

ClientConn is the state of a single HTTP/2 client connection to an HTTP/2 server.
A ContinuationFrame is used to continue a sequence of header block fragments.
A DataFrame conveys arbitrary, variable-length sequences of octets associated with a stream.
A FrameHeader is the 9 byte header of all HTTP/2 frames.
A Framer reads and writes Frames.
A GoAwayFrame informs the remote peer to stop creating streams on this connection.
A HeadersFrame is used to open a stream and additionally carries a header block fragment.
HeadersFrameParam are the parameters for writing a HEADERS frame.
A PingFrame is a mechanism for measuring a minimal round trip time from the sender, as well as determining whether an idle connection is still functional.
A PriorityFrame specifies the sender-advised priority of a stream.
PriorityParam are the stream prioritzation parameters.
A PushPromiseFrame is used to initiate a server stream.
PushPromiseParam are the parameters for writing a PUSH_PROMISE frame.
RoundTripOpt are options for the Transport.RoundTripOpt method.
A RSTStreamFrame allows for abnormal termination of a stream.
Server is an HTTP/2 server.
Setting is a setting parameter: which setting it is, and its value.
A SettingsFrame conveys configuration parameters that affect how endpoints communicate, such as preferences and constraints on peer behavior.
StreamError is an error that only affects one stream within an HTTP/2 connection.
Transport is an HTTP/2 Transport.
An UnknownFrame is the frame type returned when the frame type is unknown or no specific frame type parser exists.
A WindowUpdateFrame is used to implement flow control.

# Interfaces

ClientConnPool manages a pool of HTTP/2 client connections.
A Frame is the base interface implemented by all frame types.

# Type aliases

ConnectionError is an error that results in the termination of the entire connection.
An ErrCode is an unsigned 32-bit error code as defined in the HTTP/2 spec.
Flags is a bitmask of HTTP/2 flags.
A FrameType is a registered frame type as defined in http://http2.github.io/http2-spec/#rfc.section.11.2.
A SettingID is an HTTP/2 setting as defined in http://http2.github.io/http2-spec/#iana-settings.