package
3.49.1
Repository: https://github.com/imroc/req.git
Documentation: pkg.go.dev

# Functions

IsNoCachedConnError reports whether err is of type noCachedConnError or its equivalent renamed type in net/http2's h2_bundle.go.
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.

# Variables

No description provided by the author
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.
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.
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.
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.
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.
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 https://httpwg.org/specs/rfc7540.html#rfc.section.11.2.