Rob Ede
611154beb2
refactor: rename multipart module
2024-07-04 05:03:42 +01:00
Rob Ede
210c9a5eb3
refactor: multipart tweaks
2024-07-04 04:53:10 +01:00
Rob Ede
71cd3a31f9
fix(multipart): optional content-disposition for non-form-data requests ( #3416 )
2024-07-01 03:55:08 +01:00
Jacob Halsey
d4b833ccf0
actix-multipart: Feature: Add typed multipart form extractor ( #2883 )
...
Co-authored-by: Rob Ede <robjtede@icloud.com >
2023-02-26 03:26:06 +00:00
Rob Ede
29bd6a1dd5
fix version requirement for futures_util
2022-12-18 01:34:48 +00:00
Arniu Tseng
8ae278cb68
Remove FromRequest::Config
( #2233 )
...
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com >
Co-authored-by: Igor Aleksanov <popzxc@yandex.ru >
Co-authored-by: Rob Ede <robjtede@icloud.com >
2021-09-11 01:11:16 +01:00
Rob Ede
c8ed8dd1a4
migrate to -utils beta 4 ( #2127 )
2021-04-01 15:26:13 +01:00
Rob Ede
3188ef5731
don't use rust annotation on code doc blocks
2021-03-25 08:45:52 +00:00
Matt Gathu
37c76a39ab
Fix Multipart consuming payload before header checks ( #1704 )
...
* Fix Multipart consuming payload before header checks
What
--
Split up logic in the constructor into two functions:
- **from_boundary:** build Multipart from boundary and stream
- **from_error:** build Multipart for MultipartError
Also we make the `boundary`, `from_boundary`, `from_error` methods public within the crate so that we can use them in the extractor.
The extractor is then able to perform header checks and only consume the
payload if the checks pass.
* Add tests
* Add payload consumption test
Co-authored-by: Rob Ede <robjtede@icloud.com >
2020-09-25 14:50:37 +01:00
Yuki Okushi
ab4d8704f1
multipart: Minimize futures
dependencies
2020-05-19 08:29:11 +09:00
Nikolay Kim
471f82f0e0
migrate actix-multipart
2019-11-21 16:02:17 +06:00
Nikolay Kim
ee33f52736
make extractor config type explicit
2019-04-13 16:35:25 -07:00
Nikolay Kim
4f30fa9d46
Remove generic type for request payload, always use default
2019-04-13 14:50:54 -07:00
Nikolay Kim
043f6e77ae
remove nested multipart support
2019-04-13 10:11:07 -07:00
Nikolay Kim
75b213a6f0
refactor FromRequest trait
2019-04-07 14:43:07 -07:00
Nikolay Kim
e738361e09
move multipart support to separate crate
2019-04-03 12:28:58 -07:00