Hello, I plan to propose an RFC to add parts_mut() -> &mut Parts to enable direct mutation of Parts. We already have body_mut, headers_mut, etc., but we lack a function that allows us to simultaneously update headers, methods, and queries.
This change will will allos us to:
- let (mut parts, body) = req.into_parts();
- do_my_work(&mut parts);
- let req = Request::from_parts(parts, body);
+ do_my_work(req.parts_mut())
Hello, I plan to propose an RFC to add
parts_mut() -> &mut Parts
to enable direct mutation ofParts
. We already havebody_mut
,headers_mut
, etc., but we lack a function that allows us to simultaneously update headers, methods, and queries.This change will will allos us to: