Commit Graph

25 Commits

Author SHA1 Message Date
Lucas
d7fcd8ac2e Fix some multipart doc links (#612) 2019-09-05 11:48:39 -07:00
danieleades
cf8944a0f0 cargo fmt (#604)
Run rustfmt and setup CI to check for it.
2019-08-29 09:52:39 -07:00
Daniel Eades
4bb4149b63 remove unnecessary double-colons 2019-08-16 12:59:55 -07:00
Daniel Eades
3ba4b6eadf port all optional features to 2018-edition 2019-08-16 12:59:55 -07:00
Daniel Eades
5dc5162765 update and tidy code 2019-08-16 12:59:55 -07:00
Daniel Eades
86d9cbc66e cargo fix --edition 2019-08-16 12:59:55 -07:00
Sean McArthur
7d04fa1dfa Update to released mime_guess v2.0 2019-08-14 11:36:42 -07:00
Sean McArthur
964d87ce57 Update trait object syntax to use 'dyn' 2019-06-03 13:15:09 -07:00
Ian Smith
215981e7a0 Add percent_encode_noop configuration to Form (#467)
Some implementations of multipart/form parsing don't support alternate
encodings, but do allow unicode in 'standard' parameter values. This
change allows users to specify that they do not want to encode
parameters.

(See also: #419, #420.)
2019-03-04 11:21:35 -08:00
Sean McArthur
cf33fc907c Document the multipart module
Closes #444
2019-01-23 12:16:12 -08:00
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