pub fn create_content_length_stream<R>(
initial_buffer: Vec<u8>,
reader: R,
content_length: usize,
config: &StreamingBodyConfig,
) -> BodyExpand description
Create a streaming body from a Content-Length body.
Returns a fastapi_core::Body::Stream that yields chunks from the given
initial buffer and async reader.
ยงArguments
initial_buffer- Any bytes already buffered by the parserreader- The async reader for remaining bytescontent_length- Expected total body sizeconfig- Streaming configuration