Context
Multipart path clones body_bytes before parsing, doubling memory footprint for large payloads.
Current code
src/dispatch.rs: parse_multipart(body_bytes.clone(), ...)
Goal
Remove avoidable clone and parse from owned buffer (or equivalent zero-extra-copy path).
Acceptance criteria
- No full
body_bytes.clone() in multipart parse flow.
- Multipart tests remain green.
- Memory footprint for large multipart uploads is reduced (qualitative note in PR).
Out of scope
- Streaming multipart to disk.
Context
Multipart path clones
body_bytesbefore parsing, doubling memory footprint for large payloads.Current code
src/dispatch.rs:parse_multipart(body_bytes.clone(), ...)Goal
Remove avoidable clone and parse from owned buffer (or equivalent zero-extra-copy path).
Acceptance criteria
body_bytes.clone()in multipart parse flow.Out of scope