Skip to content

Commit

Permalink
Add headers() to impl PartMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bitfl0wer committed Nov 13, 2023
1 parent c44d566 commit 4ab344a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/wasm/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,14 @@ impl PartMetadata {
self.file_name = Some(filename.into());
self
}

pub(crate) fn headers<T>(mut self, headers: T) -> Self
where
T: Into<HeaderMap>,
{
self.headers = headers.into();
self
}
}

impl PartMetadata {
Expand Down

0 comments on commit 4ab344a

Please sign in to comment.