Parse the outer headers too, supporting non-hyper users #2

Closed
opened 2016-07-13 10:05:45 +12:00 by mikedilger · 0 comments
mikedilger commented 2016-07-13 10:05:45 +12:00 (Migrated from github.com)

Right now, for downstream crates which have data from hyper, we take Headers and the stream as separate arguments to parse_multipart().

However, in the future, data may come from sources other than Hyper (e.g. an email system, a file, etc). In those cases we should take just the stream, and parse off the headers ourselves. This will be easy to implement since we already parse internal headers ourselves (using httparse).

Right now, for downstream crates which have data from hyper, we take Headers and the stream as separate arguments to parse_multipart(). However, in the future, data may come from sources other than Hyper (e.g. an email system, a file, etc). In those cases we should take just the stream, and parse off the headers ourselves. This will be easy to implement since we already parse internal headers ourselves (using httparse).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mikedilger/mime-multipart#2
No description provided.