Refactor the read part of WebTransport Stream API into ReadStream.

The following changes are included:
- Read()/ReadableBytes() are now a part of their own interface.
- Introduce PeekNextAvaliableRegion()/MarkConsumed() as a zero-copy alternative to read.
- Introduce a utility method for to use the peek API while taking care of reading FIN correctly.
- Make webtransport::Stream a direct subclass of TerminableStream to avoid diamond inheritance problem.

The long-term plan here is to abstract multiple kinds of streams for the goals of public APIs, including incoming QUIC streams, incoming WebTransport streams, and incoming HTTP request/response bodies.

PiperOrigin-RevId: 568695001
6 files changed
tree: 7002fc8fa1f7f367ea2c75a86fa6e005901cba6b
  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.