Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: x/net/http2: enable extension frame handling for HTTP/2 #40359
HTTP/2 library currently ignores HTTP/2 frames with an undefined type. The proposal is to enable the library to handle the extension frames. The change will enable HTTP/2 Go's feature parity to nghttp2 (a popular HTTP/2 library in c).
The new API include a reader interface which can be called by both servers and clients, a write function called by servers and a write function called by clients. In addition, the PR also proposes an unknown frame info struct.
// Server side usage:
// Servers call WriteUnknownFrame writes unknown frames.
// Clients call AddUnknownFrame to add an unknown frame to http.Request on the client side. This function can
// UnknownFrameInfo is a struct to store unknown frame fields.