Commit Graph

3475 Commits

Author SHA1 Message Date
云上于天 12ce948012
Merge pull request #104 from actix/master
-
2020-11-04 09:24:42 +08:00
Rob Ede 61b65aa64a
add common 1xx http response builders (#1768)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-11-02 18:23:18 +09:00
Sebastian Mayr 5468c3c410
Drop content length headers from 101 responses (#1767)
Co-authored-by: Sebastian Mayr <smayr@atlassian.com>
2020-11-02 17:44:14 +09:00
云上于天 4b51d4f218
Merge pull request #103 from actix/master
-
2020-11-02 08:29:42 +08:00
Yuki Okushi b6385c2b4e Remove CoC on actix-http as duplicated 2020-10-31 12:12:19 +09:00
Yuki Okushi 5135c1e3a0 Update CoC contact information 2020-10-31 12:06:51 +09:00
Rob Ede 22b451cf2d
fix deps.rs badge 2020-10-31 02:39:54 +00:00
Rob Ede 42f51eb962
prepare web release 3.2.0 2020-10-30 03:15:22 +00:00
Rob Ede 156c97cef2
prepare awc release 2.0.1 2020-10-30 02:50:53 +00:00
Rob Ede 798d744eef
prepare http release 2.1.0 2020-10-30 02:19:56 +00:00
Rob Ede 4cb833616a
deprecate builder if-x methods (#1760) 2020-10-30 02:10:05 +00:00
Rob Ede 9963a5ef54
expose on_connect v2 (#1754)
Co-authored-by: Mikail Bagishov <bagishov.mikail@yandex.ru>
2020-10-30 02:03:26 +00:00
Joshua Parkin 4519db36b2
register fns for custom request-derived logging units (#1749)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-10-29 18:38:49 +00:00
云上于天 ca0ba091d8
Merge pull request #102 from actix/master
-
2020-10-27 08:36:46 +08:00
Augusto César Dias 7030bf5fe8
Adding app_data to ServiceConfig (#1758)
Co-authored-by: Rob Ede <robjtede@icloud.com>
Co-authored-by: Augusto <augusto@flowciety.de>
2020-10-26 17:02:45 +00:00
ghizzo01 20078fe603
Bump pin-project to 1.0 (#1733) 2020-10-25 19:41:44 +09:00
Jonas 06e5042b94
use idenity encoding on client if no compression features are enabled (#1737)
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-10-24 21:15:01 +01:00
Daniel Egger 41e7cec72f
Re-export bytes::Buf and bytes::BufMut as well (#1750)
Co-authored-by: Daniel Egger <daniel.egger@axiros.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-10-24 20:31:23 +01:00
Rob Ede d45a1aa6b6
Add `web::ReqData<T>` extractor (#1748)
Co-authored-by: Jonas Platte <jonas@lumeo.com>
2020-10-24 18:49:50 +01:00
云上于天 6bff019aa7
Merge pull request #101 from actix/master
actix#1740 actix#1723 actix#1741 actix#1744 actix#1743
2020-10-21 21:23:42 +08:00
cquintana-verbio 98243db9f1
Print unconfigured `Data<T>` type when attempting extraction (#1743)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-10-20 17:35:34 +01:00
ghizzo01 f92742bdac
Bump base64 to 0.13 (#1744) 2020-10-19 18:24:22 +01:00
Rob Ede e563025b16
always construct shortslice using debug checked new constructor (#1741) 2020-10-19 12:51:30 +01:00
Matt Gathu cfd5b381f1
Implement Logger middleware regex exclude pattern (#1723)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-10-19 07:18:16 +01:00
Yuki Okushi 2f84914146
Skip some tests that cause ICE on nightly (#1740) 2020-10-19 11:52:05 +09:00
云上于天 e4d60f5997
Merge pull request #100 from actix/master
Fix clippy::rc_buffer (#1728)
2020-10-10 13:51:35 +08:00
Jonas Platte d765e9099d
Fix clippy::rc_buffer (#1728) 2020-10-10 09:26:05 +09:00
云上于天 a347394858
Merge pull request #99 from actix/master
-
2020-10-09 18:19:07 +08:00
Rob Ede 34b23f31c9
prepare files release 0.4.0 2020-10-06 22:08:33 +01:00
Rob Ede 26c1a901d9
add files preference for utf8 text responses (#1714) 2020-10-06 21:56:28 +01:00
云上于天 06ab71f443
Merge pull request #98 from actix/master
Fix/suppress clippy warnings (#1720)
2020-10-02 17:20:15 +08:00
Yuki Okushi c2c71cc626
Fix/suppress clippy warnings (#1720) 2020-10-01 18:19:09 +09:00
云上于天 b8daa30944
Merge pull request #97 from actix/master
prepare web release 3.1.0 (#1716)
2020-10-01 10:55:08 +08:00
Rob Ede aa11231ee5
prepare web release 3.1.0 (#1716) 2020-09-30 11:07:35 +01:00
云上于天 1ed0d8fb66
Merge pull request #96 from actix/master
Remove Sized Bound for web::Data (#1712)
2020-09-30 15:10:36 +08:00
PeterUlb b5812b15f0
Remove Sized Bound for web::Data (#1712) 2020-09-29 22:44:12 +01:00
Zhang Zhongyu d674816fed
Merge pull request #95 from actix/master
-
2020-09-26 13:02:15 +08:00
Matt Gathu b4e02fe29a
Fix cyclic references in ResourceMap (#1708) 2020-09-25 17:42:49 +01: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
LIU An (劉安) 60e7e52276
Add TrailingSlash::MergeOnly behavior (#1695)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-09-25 12:50:59 +01:00
Zhang Zhongyu 5adcd9a68b
Merge pull request #94 from actix/master
prepare codegen 0.4.0 release (#1702)
2020-09-25 19:42:27 +08:00
Rob Ede c53e9468bc
prepare codegen 0.4.0 release (#1702) 2020-09-24 23:54:01 +01:00
Zhang Zhongyu 0524d3289e
Merge pull request #93 from actix/master
-
2020-09-23 22:51:50 +08:00
Arniu Tseng 162121bf8d
Unify route macros (#1705) 2020-09-22 22:42:51 +01:00
Rob Ede f7bcad9567
split up files lib (#1685) 2020-09-20 23:18:25 +01:00
Igor Aleksanov f9e3f78e45
eemove non-relevant comment from actix-http README.md (#1701) 2020-09-20 17:21:53 +01:00
Silentdoer 1596893ef7
update actix-http dev-dependencies (#1696)
Co-authored-by: luojinming <luojm@hxsmart.com>
2020-09-19 23:20:34 +09:00
Lokathor 2a2474ca09
Update `tinyvec` to 1.0 (#1689) 2020-09-17 18:09:42 +01:00
Matt Gathu 509b2e6eec
Provide attribute macro for multiple HTTP methods (#1674)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2020-09-16 22:37:41 +01:00
Zhang Zhongyu ba4ca433c7
Merge pull request #92 from actix/master
-
2020-09-16 11:15:49 +08:00