Skip to main content

split_zip_bytes

Function split_zip_bytes 

Source
pub fn split_zip_bytes(
    parent: Exchange,
    bytes: Bytes,
    config: ZipSplitConfig,
) -> Pin<Box<dyn Stream<Item = Result<Exchange, CamelError>> + Send>>
Expand description

Split a ZIP archive’s bytes into a stream of Exchanges, one per entry.

Takes owned Bytes (for 'static lifetime), a parent Exchange whose headers and properties are cloned into each entry’s exchange, and a ZipSplitConfig controlling limits and policy.

This is the core extraction — callers such as zip_splitter() or camel-core component code can invoke it directly with already-acquired bytes.