Change Http2VisitorInterface::OnInvalidFrame() to accept an InvalidFrameError enum.

This CL introduces a new enum class InvalidFrameError in Http2VisitorInterface
and converts Http2VisitorInterface::OnInvalidFrame() to use an
InvalidFrameError instead of an integer error code. This change improves
clarity in the method and will allow OgHttp2Session to call OnInvalidFrame()
more readily, e.g., in header validation.

PiperOrigin-RevId: 407223283
12 files changed
tree: 59472656443d034dd67916d4941581cc587312f8
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/


QUICHE stands for QUIC, Http/2, Etc. It is Google‘s production-ready implementation of QUIC, HTTP/2, HTTP/3, and related protocols and tools. It powers Google’s servers, Chromium, Envoy, and other projects. It is actively developed and maintained.

There are two public QUICHE repositories. Either one may be used by embedders, as they are automatically kept in sync:

To embed QUICHE in your project, platform APIs need to be implemented and build files need to be created. Note that it is on the QUICHE team's roadmap to include default implementation for all platform APIs and to open-source build files. In the meanwhile, take a look at open source embedders like Chromium and Envoy to get started:

To contribute to QUICHE, follow instructions at

QUICHE is only supported on little-endian platforms.