Add a handler for Capsules with an unknown type to Http3DatagramVisitor.

According to RFC 9297, Capsules with an unknown type can be either forwarded (by intermediaries) or dropped (by endpoints). Existing QuicSpdyStream, however, always drops such Capsules. I added OnUnknownCapsule method to QuicSpdyStream::Http3DatagramVisitor so that a user of the visitor can implement appropriate behavior. QuicSpdyStream calls the method when it receives unknown Capsules.

This CL does not change the behavior of existing code. I added an empty OnUnknownCapsule method to each existing class that extends Http3DatagramVisitor, so they discard parsed unknown Capsules and eventually drop them.

This CL doesn't require flag protection because datagram support is never enabled on production servers today.

PiperOrigin-RevId: 515751073
8 files changed
tree: e23ba15b42ebac352d4e19aeb9f724532f2f4f49
  1. build/
  2. depstool/
  3. quiche/
  4. .bazelrc
  5. BUILD.bazel
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
  9. WHITESPACE
  10. 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.