Commit Graph

15 Commits

Author SHA1 Message Date
Sean McArthur
56eff821fd refactor multipart to reduce duplicate code between sync and async 2019-01-07 13:40:04 -08:00
Kevin Wilson
4c21127f15 add async multipart request handling 2019-01-07 10:57:51 -08:00
Sean McArthur
70b68c2b0a add configuration to multipart::Form to choose percent-encoding format
Sets the default back to `path-segment`, since the "fix" breaks anyone
using reqwest from before.

Closes #363
2018-10-26 13:57:45 -07:00
Mark Blum
efa5926813 Added Part::bytes(...) method 2018-10-15 15:58:10 -07:00
Yannick Heinrich
44c8ca392d Fix multipart filename encoding (#363)
- Create a new encoding policy based on information
  from bug's comments and RFC documents
- Update tests accordingly

Closes #295
2018-10-05 11:22:53 -07:00
Sean McArthur
2698148743 fix improper handling of request body backpressure
Closes #348
2018-09-19 14:20:12 -07:00
Sean McArthur
64569542d4 fix tests for Part::mime() 2018-09-11 14:12:16 -07:00
Sean McArthur
5abf064770 change multipart::Part::mime() to mime_str()
The mime crate is expecting a breaking change to 0.4, so to remove the
public dependency, this method is changed to `mime_str`, which will
parse a MIME string instead.
2018-09-11 13:39:14 -07:00
Lucas Kent
99b52f949b Update to uuid 0.7 (#340) 2018-09-11 13:31:52 -07:00
Sean McArthur
a205128f03 fix multipart test compilation 2018-09-04 13:10:07 -07:00
Sean McArthur
b4c37fdc37 fix multipart header test 2018-09-04 11:47:51 -07:00
Sean McArthur
427900ff0c switch multipart headers to use HeaderValue 2018-09-04 11:30:18 -07:00
jcaesar
ca42e77abe Add a way to add headers to parts of multipart form data (#331) 2018-09-04 09:51:00 -07:00
Sean McArthur
2143aad3cd pub(crate)ify the multipart facade 2018-08-29 18:22:55 -07:00
e00E
93c8321305 Add multipart/form-data support 2017-08-21 10:58:59 -07:00