There are several crates to parse HTTP multi-part post form but none of them can work with hyper 0.13 because breaking changes in hyper
- abonander/multipart
- abonander/multipart-async
- mikedilger/formdata
- jeizsm/rust-multipart-rfc7578 No server side implementation
abonander/multipart seems can be adapted.
Generally I need implement its multipart::server::HttpRequest trait for hyper::Request (which is actually http::Request
)
I tried to do that but sooner receives an error.
107 | impl multipart::server::HttpRequest for hyper::Request<hyper::body::Body> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------------------
| | |
| | `http::request::Request` is not defined in the current crate
| impl doesn't use only types from inside the current crate
|
= note: define and implement a trait or new type instead
Please is there some other way to parse multi-part in hyper 0.13 server ?