Streaming bodies
Titanium can stream request and response bodies across HTTP/1.x (plain and TLS), HTTP/2, and HTTP/3 instead of buffering entire payloads.
When to stream
- Large uploads / downloads
- Proxied media
- Hooks that transform data incrementally (
OnRequestBodyWrite/OnResponseBodyWrite)
Library hooks
Use session events and body-write callbacks on SessionEventArgs / related types. Prefer streaming APIs when you do not need the full buffer.
For HTTP/3, per-chunk streaming hooks are part of the experimental surface (TWP001).
Details
Full guidance, limitations, and examples: Streaming-Bodies wiki.
Synthetic / custom responses: Synthetic-Responses wiki.