Expand description
Stream types and buffering utilities for object data.
Data flows in streams to keep memory consumption low. Two distinct types cover the two directions of data flow:
ClientStream— incoming data from a client PUT request body. UsesClientErroras the error type so backends can distinguish a broken client connection from a backend I/O failure (400 vs 500).PayloadStream— outgoing data returned fromBackend::get_object.
Structs§
- Client
Error - Error originating from a client-supplied input stream.
Functions§
- single
- Creates a single-chunk stream that yields
contentsas one item. - unpack_
client_ error - Walks the source chain of
errlooking for aClientError.
Type Aliases§
- Client
Stream - Incoming byte stream from a client PUT request body.
- Payload
Stream - Outgoing byte stream returned by
Backend::get_object.