Commit Graph

54 Commits

Author SHA1 Message Date
Nikolay Kim fa78da8156 unify route and app data, it allows to provide global extractor config #775 2019-05-04 19:43:49 -07:00
Nikolay Kim f4b4875cb1 Add helper function for executing futures test::block_fn() 2019-04-29 09:34:14 -07:00
Nikolay Kim 29a841529f Allow to construct Data instances to avoid double Arc for Send + Sync types. 2019-04-29 09:26:12 -07:00
Darin b51b5b763c added clarification to docs regarding middleware processing sequence, added delete method to TestRequest (#799)
* added clarification to docs regarding middleware processing sequnce

* added delete method to TestRequest, doc, and test
2019-04-29 09:14:36 -07:00
Nikolay Kim 898ef57080 Fix async web::Data factory handling 2019-04-23 21:21:49 -07:00
Nikolay Kim 7a28b32f6d Rename test::call_success to test::call_service 2019-04-15 07:44:07 -07:00
Nikolay Kim 09cdf1e302 Rename RouterConfig to ServiceConfig 2019-04-15 07:32:49 -07:00
Nikolay Kim 5bd5651faa Allow to use any service as default service 2019-04-13 22:25:00 -07:00
Nikolay Kim 4f30fa9d46 Remove generic type for request payload, always use default 2019-04-13 14:50:54 -07:00
Nikolay Kim 9d82d4dfb9 Fix body propagation in Response::from_error. #760 2019-04-10 12:43:31 -07:00
Nikolay Kim 237bfba1ed add App::configure() - allow to offload app configuration to different methods 2019-04-03 15:09:31 -07:00
Nikolay Kim e282ef7925 return back consuming builder 2019-04-02 12:51:16 -07:00
dowwie 03dfbdfcdd updated wrap and wrap fn descriptions, still requiring viable examples 2019-04-01 14:52:05 -04:00
dowwie 8800b8ef13 mentioned re-use in wrap doc 2019-04-01 09:59:21 -04:00
dowwie 220c04b7b3 added docs for wrap and wrap_fn 2019-04-01 09:30:11 -04:00
Nikolay Kim 724e9c2efb replace deprecated fn 2019-03-30 07:56:09 -07:00
Nikolay Kim 878f32c495 fix tests for no-default-features 2019-03-28 14:27:07 -07:00
Nikolay Kim 605ce05127 App::enable_encoding() allows to enable compression and decompression 2019-03-28 12:32:59 -07:00
Nikolay Kim 1904b01fc0 add content-encoding decompression 2019-03-26 15:14:32 -07:00
Nikolay Kim e18227cc3d add wrap_fn to App and Scope 2019-03-25 13:43:02 -07:00
Nikolay Kim 86a21c956c rename .middleware to .wrap 2019-03-25 13:02:10 -07:00
Nikolay Kim 307b2e5b0e fix compress features 2019-03-24 11:29:35 -07:00
Nikolay Kim 4a4826b23a cleanup doc strings and clippy warnings 2019-03-16 21:35:02 -07:00
Nikolay Kim 60386f1791 introduce RouteData extractor 2019-03-16 21:09:11 -07:00
Nikolay Kim b1e267bce4 rename State to a Data 2019-03-16 20:17:27 -07:00
Nikolay Kim 9680423025 Add more tests for route 2019-03-10 18:35:15 -07:00
Nikolay Kim 4d96abb639 use actix_web::Error for middleware errors 2019-03-10 16:35:38 -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 c0ce7f0bae update http service usage; add app host 2019-03-09 10:53:00 -08:00
Nikolay Kim fde55ffa14 revert generic request parameter for service; support ServerConfig as new factory config 2019-03-09 09:49:11 -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 0e57b4ad61 export extractor configs via web module 2019-03-07 14:01:52 -08:00
Nikolay Kim ceb6d45bf2 reexpost extractors in web module 2019-03-07 11:43:46 -08:00
Nikolay Kim 244fff9e0a added Logger middleware 2019-03-06 19:19:27 -08:00
Nikolay Kim fe22e83144 refactor service registration process; unify services and resources 2019-03-06 15:47:15 -08:00
Nikolay Kim 6efc3438b8 refactor and enable some tests for staticfiles 2019-03-05 22:10:08 -08:00
Nikolay Kim 0de47211b2 tune App::default_resource signature 2019-03-05 19:30:44 -08:00
Nikolay Kim 81273f71ef update tests 2019-03-05 19:03:59 -08:00
Nikolay Kim 03248028a9 update actix-service 2019-03-05 10:08:08 -08:00
Nikolay Kim b6fe1dacf2 update middleware impl 2019-03-04 21:42:51 -08:00
Nikolay Kim bd4124587a provide block_on function for testing purpose 2019-03-04 13:25:35 -08:00
Nikolay Kim e442ddb167 allow scope level guards 2019-03-04 11:47:53 -08:00
Nikolay Kim 5c61321565 fix state factory support, tests for state and state factory 2019-03-03 21:40:03 -08:00
Nikolay Kim 34171fa7f5 add scopes 2019-03-03 21:02:01 -08:00
Nikolay Kim 360082f99f update api docs 2019-03-03 14:45:56 -08:00
Nikolay Kim b81ae899f6 better naming 2019-03-03 08:24:09 -08:00
Nikolay Kim b320dc127a remove unused code 2019-03-02 22:22:45 -08:00
Nikolay Kim 115b30d9cc add state example 2019-03-02 22:11:24 -08:00
Nikolay Kim d5c54a1867 update extractor tests 2019-03-02 22:03:45 -08:00
Nikolay Kim 8103d33270 use custom request for FromRequest trait 2019-03-02 19:19:56 -08:00