package
0.0.0-20220628045418-2e6a22a86d64
Repository: https://github.com/ugwis/golang-net.git
Documentation: pkg.go.dev
# Functions
ConfigureServer adds HTTP/2 support to a net/http Server.
ConfigureTransport configures a net/http HTTP/1 Transport to use HTTP/2.
ConfigureTransports 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.
NewPriorityWriteScheduler constructs a WriteScheduler that schedules frames by following HTTP/2 priorities as described in RFC 7540 Section 5.3.
NewRandomWriteScheduler constructs a WriteScheduler that ignores HTTP/2 priorities.
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
TrailerPrefix is a magic prefix for ResponseWriter.Header map keys that, if present, signals that the map entry is actually for the response trailers, and not the response headers.
# 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
Push errors.
Push errors.
No description provided by the author
# Structs
ClientConn is the state of a single HTTP/2 client connection to an HTTP/2 server.
ClientConnState describes the state of a ClientConn.
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.
FrameWriteRequest is a request to write a frame.
GoAwayError is returned by the Transport when the server closes the TCP connection after sending a GOAWAY frame.
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 MetaHeadersFrame is the representation of one HEADERS frame and zero or more contiguous CONTINUATION frames and the decoding of their HPACK-encoded contents.
OpenStreamOptions specifies extra options for WriteScheduler.OpenStream.
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.
PriorityWriteSchedulerConfig configures a priorityWriteScheduler.
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.
ServeConnOpts are options for the Server.ServeConn method.
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.
WriteScheduler is the interface implemented by HTTP/2 write schedulers.
# 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.