netguru / ResponseDetective

Sherlock Holmes of the networking layer. :male_detective:
MIT License
1.95k stars 92 forks source link

Support for multipart/form-data requests #39

Open akashivskyy opened 7 years ago

akashivskyy commented 7 years ago

ResponseDetective should support multipart/form-data requests, deserializing each data segment as if they were at the root level.

The output of body section should provide information on all segments:

Segment 0
 ├─ Headers
 │ Content-Type: image/png
 │ Content-Disposition: form-data; name="foo"; filename="image.png"
 ├─ Body
 │ 10px × 10px image

Segment 1
 ├─ Headers
 │ Content-Disposition: form-data; name="bar"
 ├─ Body
 │ baz

Segment 2
 ├─ Headers
 │ Content-Type: application/octet-stream
 │ Content-Disposition: form-data; name="qux"
 ├─ Body
 │ <none>