multiparty
Simple zero copy* streaming multipart decoder implementation.
Also exposes the underlying Sans IO decoder, for use outside of
the futures
0.3 ecosystem.
Examples
= { = "0.1", = ["server", "futures03"] }
use FormData;
use TryStreamExt;
let boundary = todo!;
let stream = todo!;
let mut multipart = new;
while let Some = multipart.try_next.await?
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.
* Except for streams yielding Bytes
smaller than half the boundary length.