Commit Graph

137 Commits

Author SHA1 Message Date
Nikolay Kim 1732ae8c79 fix Bodyencoding trait usage 2019-12-18 09:30:14 +06:00
Nikolay Kim f73f97353b refactor ResponseError trait 2019-11-26 16:07:39 +06:00
Jos van den Oever 32a1c36597 Make UrlencodedError::Overflow more informative (#1089) 2019-09-17 06:58:04 +06:00
Nikolay Kim e7ba67e1a8 rename PathPayloadError and test for path config 2019-06-12 17:02:45 +06:00
Lucas Berezy 13e618b128 Added initial support for PathConfig, allows setting custom error handler. (#903) 2019-06-12 16:49:56 +06:00
Nikolay Kim e1ff3bf8fa fix resource match with params #841 2019-05-15 10:31:40 -07:00
Davide Di Carlo bba90d7f22 Query config (#839)
* add QueryConfig

* expose QueryConfig in web module

* fmt

* use associated type for QueryConfig

* update CHANGES.md
2019-05-14 13:54:30 -07:00
Nikolay Kim 9d82d4dfb9 Fix body propagation in Response::from_error. #760 2019-04-10 12:43:31 -07:00
Nikolay Kim dfa0abf5a5 Export IntoHeaderValue 2019-04-03 12:44:47 -07:00
Nikolay Kim 5c4e4edda4 add ClientResponse::json() 2019-04-01 11:51:18 -07:00
Nikolay Kim 5795850bbb decompress payload in cpu threadpool 2019-03-28 11:08:24 -07:00
Nikolay Kim 6e0fe7db2d use actix-threadpool for blocking calls 2019-03-28 05:16:43 -07:00
Nikolay Kim 4309d9b88c port multipart support 2019-03-28 05:04:39 -07:00
Nikolay Kim 9bd0f29ca3 add tests for error and some responders 2019-03-17 10:11:10 -07:00
Nikolay Kim c14c66d2b0 add json extractor tests 2019-03-17 09:52:41 -07:00
Nikolay Kim 9012c46fe1 move payload futures from actix-http 2019-03-17 00:48:40 -07:00
Nikolay Kim 7242d96701 map BlockingError 2019-03-11 23:19:05 -07:00
Nikolay Kim a2c4639074 move blocking code to actix-rt 2019-03-11 23:11:51 -07:00
Nikolay Kim b6c1135798 hide blocking mod 2019-03-10 10:56:53 -07:00
Nikolay Kim 54678308d0 propogate app config with http request; add tests for url_for 2019-03-09 14:06:24 -08:00
Nikolay Kim aadcdaa3d6 add resource map, it allow to check if router has resource and it allows to generate urls for named resources 2019-03-09 07:39:34 -08:00
Nikolay Kim 2d7293aaf8 copy actix-web2 2019-03-01 22:51:32 -08:00
ethanpailes 90eef31cc0 impl ResponseError for SendError when possible (#619) 2018-12-11 19:37:52 +03:00
Huston Bokinsky 6a93178479 Complete error helper functions. 2018-11-20 08:07:46 +03:00
Nikolay Kim 972b008a6e remove unsafe error transmute, upgrade failure to 0.1.2 #434 2018-08-01 09:42:12 -07:00
Tobias Bieniek 9012cf43fe
error: Fix documentation typo 2018-07-14 00:05:07 +02:00
Tessa Bradbury 080f232a0f Use StaticFile default handler when file is inaccessible (#357)
* Use Staticfile default handler on all error paths

* Return an error from StaticFiles::new() if directory doesn't exist
2018-07-05 12:34:13 +03:00
Nikolay Kim fec6047ddc refactor HttpRequest mutability 2018-07-02 23:35:32 +06:00
Nikolay Kim 8e160ebda7 clippy warning 2018-06-21 11:49:36 +06:00
Nikolay Kim c2c4a5ba3f fix failure Send+Sync compatibility 2018-06-21 10:45:24 +06:00
Nikolay Kim 2f917f3700 various cleanups and comments 2018-06-20 01:27:41 +06:00
Nikolay Kim b6ed778775 remove HttpMessage::range() 2018-06-17 08:48:50 +06:00
Dursun Akkurt cb77f7e688 Add `HttpMessage::readlines()` 2018-06-14 00:19:48 +03:00
Dursun Akkurt 1bee528018 move ReadlinesError to error module 2018-06-13 22:59:36 +03:00
Dursun Akkurt 8af082d873 remove FormPayloadError 2018-06-12 20:26:09 +03:00
Ozgur Akkurt d4d3add17d add ClientRequestBuilder::form() 2018-06-12 19:30:00 +03:00
Nikolay Kim 9b012b3304 do not allow stream or actor responses for internal error #301 2018-06-11 19:45:17 -07:00
Nikolay Kim a0344eebeb InternalError can trigger memory unsafety #301 2018-06-11 18:54:36 -07:00
Nikolay Kim 60d40df545 fix clippy warning 2018-06-07 19:46:46 -07:00
Armin Ronacher 789af0bbf2
Added improved failure interoperability with downcasting (#285)
Deprecates Error::cause and introduces failure interoperability functions and downcasting.
2018-06-07 18:53:27 +02:00
Nikolay Kim b799677532 better error messages for overflow errors 2018-06-02 15:10:48 -07:00
Douman 2a9b57f489 Correct docstring 2018-06-02 22:27:43 +03:00
Douman fce8dd275a Specialize ResponseError for PayloadError
Closes #257
2018-06-02 22:20:22 +03:00
Pascal Hertleif 890a7e70d6 Add missing API docs
These were written without much knowledge of the actix-web internals!
Please review carefully!
2018-06-02 15:52:50 +02:00
Nikolay Kim 3f5a39a5b7 cargo fmt 2018-06-01 09:37:14 -07:00
Nikolay Kim 690169db89 migrate to tokio 2018-05-24 21:03:16 -07:00
Nikolay Kim 0d36b8f826 fix 1.24 compatibility 2018-05-15 19:07:43 -07:00
Nikolay Kim 76f021a6e3 add tests for ErrorXXX helpers 2018-05-10 09:13:26 -07:00
dowwie 8b473745cb added error response functions for 501,502,503,504 2018-05-10 11:26:38 -04:00
Nikolay Kim a817ddb57b add variable segments support for scope prefix 2018-05-07 13:50:43 -07:00