Add a new MetadataVisitor class to QuicSpdyStream.
If registered, an instance of this new class will receive decoded HTTP/3
METADATA frames. If not, registered, HTTP/3 METADATA frames will be delivered
as unknown HTTP/3 frames, which is current behavior.

This is motivated by implements HTTP/3 METADATA handling in Envoy. Without
this new visitor, we need to hook into the EnvoyQuicSession's OnUnknownFrame
methods. But this is really annoying because we receive frames on the Stream,
bounce them (at the QUICHE layer) over the the Session which parses them into
Headers and then need to bounce them back over to the Stream. This is awkward.
By using this new Visitor, the Stream itself can handle METADATA.

Protected by FLAGS_quic_reloadable_flag_quic_enable_http3_metadata_decoding.

PiperOrigin-RevId: 611542297
11 files changed
tree: 826cac220753cbcf2b9725831345b50fe55f4d07
  1. build/
  2. depstool/
  3. quiche/
  4. .bazelrc
  5. .bazelversion
  6. BUILD.bazel
  7. CONTRIBUTING.md
  8. LICENSE
  9. README.md
  10. WHITESPACE
  11. WORKSPACE.bazel
README.md

QUICHE

QUICHE stands for QUIC, Http, 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 CONTRIBUTING.md.

QUICHE is only supported on little-endian platforms.