pub fn extract_form_part_header<T: StreamReader>(
reader: &mut T,
body_buffer: &mut Vec<u8>,
limits: &Limits,
) -> Result<Vec<u8>, MultipartFormDataError>
Expand description
Parses the form part header and removes the header from body buffer including \r\n\r\n bytes.
Content-Disposition: form-data; name="name"
John Doe
----------------------------648887867674240986891965
Content-Disposition: form-data; name="file"; filename="a.txt"
Content-Type: text/plain
... continues