Iron Plugin #18

Closed
opened 2015-12-11 14:05:38 +13:00 by mcasper · 2 comments
mcasper commented 2015-12-11 14:05:38 +13:00 (Migrated from github.com)

Have you considered or would you be open to making this an Iron plugin? It seems like one of the major use cases for this would be with an Iron app, and it would be great to be able to do something like

fn handle(&self, req: &mut Request) -> IronResult {
  let form_data = req.get_ref::<FormData>();
  // etc
}

Whether the plugin code be in this repo or another that depends on this, Iron doesn't have any official multipart/form-data support yet that I've found, and it would be awesome to see this as a plugin. (Coming from someone writing an app that's going to deal with lots of file uploading)

Have you considered or would you be open to making this an Iron plugin? It seems like one of the major use cases for this would be with an Iron app, and it would be great to be able to do something like ``` Rust fn handle(&self, req: &mut Request) -> IronResult { let form_data = req.get_ref::<FormData>(); // etc } ``` Whether the plugin code be in this repo or another that depends on this, Iron doesn't have any official multipart/form-data support yet that I've found, and it would be awesome to see this as a plugin. (Coming from someone writing an app that's going to deal with lots of file uploading)
mikedilger commented 2015-12-11 14:22:45 +13:00 (Migrated from github.com)

This has come up before (#13), and I made changes (92ff81ea12) to support this.

The params crate at https://crates.io/crates/params is the Iron plugin you are looking for.

This has come up before (#13), and I made changes (92ff81ea12915bd1cd1b8f71ccddcb5b849540b3) to support this. The `params` crate at https://crates.io/crates/params is the Iron plugin you are looking for.
mcasper commented 2015-12-11 14:24:54 +13:00 (Migrated from github.com)

Thanks!

Thanks!
This discussion has been locked. Commenting is limited to contributors.
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/formdata#18
No description provided.