Skip to content

Commit

Permalink
feat: add FormStream
Browse files Browse the repository at this point in the history
  • Loading branch information
fMeow committed May 29, 2021
1 parent 13011c3 commit cc5135d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/form.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,11 @@ impl FormData {
multipart_to_read(boundary, nodes)
}
}

/// Form stream with boundary, bytes count and a `std::io::Read`
#[derive(Debug)]
pub struct FormStream<T: ConcatRead + Send + Sync> {
pub boundary: Vec<u8>,
pub reader: T,
pub count: usize,
}

0 comments on commit cc5135d

Please sign in to comment.