Nikolay Kim
d293ae2a69
fix nested resource map registration #915
2019-06-15 22:12:20 +06:00
Nikolay Kim
0e138e111f
add external resource support on scope level
2019-06-03 23:41:32 +06:00
Denys Vitali
1fce4876f3
Scope configuration ( #880 )
...
* WIP: Scope configuarion
* Extensions: Fix into_iter()
* Scope: Fix tests
* Add ScopeConfig to web
Committing from mobile, if this doesn't look good it's because I haven't tested it...
* Scope Config: Use ServiceConfig instead
* Scope: Switch to ServiceConfig in doc
* ScopeConfig: Remove unnecessary changes, handle the case when data is empty
* ScopeConfig: Remove changes from actix-http
2019-06-03 23:12:37 +06:00
Nikolay Kim
45c05978b0
Allow to set/override app data on scope level
2019-05-12 09:42:05 -07:00
Nikolay Kim
df08baf67f
update actix-net dependencies
2019-05-12 08:34:51 -07:00
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
70a4c36496
use Error explicitly
2019-04-25 11:14:32 -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
aa78565453
use objects pool for HttpRequest; optimize nested services call
2019-04-07 23:06:21 -07:00
Nikolay Kim
bca31eb7ad
remove Deref
2019-04-02 13:35:01 -07:00
Nikolay Kim
e282ef7925
return back consuming builder
2019-04-02 12:51:16 -07:00
dowwie
3dd3f7bc92
updated scope wrap doc
2019-04-01 15:10:28 -04:00
dowwie
03dfbdfcdd
updated wrap and wrap fn descriptions, still requiring viable examples
2019-04-01 14:52:05 -04: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
ed322c175e
update tests
2019-03-24 16:28:16 -07:00
Nikolay Kim
4a4826b23a
cleanup doc strings and clippy warnings
2019-03-16 21:35:02 -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
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
eef687ec80
remove unneeded methods
2019-03-07 15:51:24 -08:00
Nikolay Kim
0e57b4ad61
export extractor configs via web module
2019-03-07 14:01:52 -08:00
Nikolay Kim
60c048c8cd
fix nested resources
2019-03-06 19:27:18 -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
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
2d7293aaf8
copy actix-web2
2019-03-01 22:51:32 -08:00
Douman
0745a1a9f8
Remove usage of upcoming keyword async
...
AsyncResult::async is replaced with AsyncResult::future
2018-12-05 18:23:04 +03:00
Stanislav Tkach
3b536ee96c
Use old clippy attributes syntax ( #562 )
2018-11-01 11:14:48 +03:00
Nikolay Kim
127af92541
clippy warnings
2018-10-01 21:16:56 -07:00
Nikolay Kim
d65c72b44d
use server keep-alive timer as slow request timer
2018-09-15 09:55:38 -07:00
Nikolay Kim
24d1228943
simplify handler path processing
2018-09-03 11:28:47 -07:00
Nikolay Kim
b7a73e0a4f
fix Scope::handler doc test
2018-09-02 08:51:26 -07:00
Nikolay Kim
968c81e267
Handling scoped paths without leading slashes #460
2018-09-02 08:14:54 -07:00
Nikolay Kim
f2f05e7715
allow to register handlers on scope level #465
2018-09-02 07:47:19 -07:00
Nikolay Kim
1716380f08
clippy fmt
2018-08-23 09:48:01 -07:00
Nikolay Kim
eb1e9a785f
allow to use fn with multiple arguments with .with()/.with_async()
2018-08-16 20:29:06 -07:00
Nikolay Kim
2071ea0532
HttpRequest::url_for is not working with scopes #429
2018-07-31 15:40:52 -07:00
Nikolay Kim
2dd57a48d6
checks nested scopes in has_resource()
2018-07-16 11:33:29 +06:00
Nikolay Kim
2214492792
use assert and restore test case
2018-07-15 18:53:02 +06:00
Nikolay Kim
b759dddf5a
simplify application prefix impl
2018-07-15 16:25:56 +06:00
Nikolay Kim
da915972c0
refactor router
2018-07-15 16:25:56 +06:00
Nikolay Kim
b8b90d9ec9
rename ResourceHandler to Resource
2018-07-12 15:30:01 +06:00
Nikolay Kim
6fd686ef98
cleanup warnings
2018-07-04 21:01:27 +06:00
Nikolay Kim
fec6047ddc
refactor HttpRequest mutability
2018-07-02 23:35:32 +06:00
Nikolay Kim
c9069e9a3c
remove unneeded UnsafeCell
2018-06-21 23:21:28 +06:00
Nikolay Kim
65ca563579
use read only self for Middleware
2018-06-21 23:06:23 +06:00
Nikolay Kim
3de9284592
Handler::handle uses &self instead of mutabble reference
2018-06-21 17:07:54 +06:00
Josh Leeb-du Toit
c5e8c1b710
Propagate default resources to underlying scopes
2018-06-21 18:17:27 +10:00
Josh Leeb-du Toit
f815c1c096
Add test for default_resource scope propagation
2018-06-21 13:10:40 +10:00
Nikolay Kim
2f917f3700
various cleanups and comments
2018-06-20 01:27:41 +06:00
Nikolay Kim
a69c1e3de5
remove unsafe from scope impl
2018-06-19 23:46:58 +06:00
Nikolay Kim
27b6af2800
refactor route matching
2018-06-19 16:45:26 +06:00
Nikolay Kim
984791187a
Middleware::response is not invoked if error result was returned by another Middleware::start #255
2018-06-04 13:42:47 -07:00
Nikolay Kim
a61a1b0efe
Merge branch 'master' into trait-middleware-mut-self
2018-06-02 08:54:00 -07: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
Josh Leeb-du Toit
9c9eb62031
Update Middleware trait to use &mut self
2018-06-02 16:47:18 +10:00
Nikolay Kim
3f5a39a5b7
cargo fmt
2018-06-01 09:37:14 -07:00
Nikolay Kim
17f1a2b92a
more scope tests
2018-05-23 14:11:01 -07:00
Nikolay Kim
68eb2f26c9
Allow to use path without traling slashes for scope registration #241
2018-05-23 13:21:29 -07:00
Nikolay Kim
082ff46041
Fix scope resource path extractor #234
2018-05-20 17:04:23 -07:00
Nikolay Kim
45e9aaa462
rustfmt 0.7
2018-05-17 12:20:20 -07:00
Nikolay Kim
b393ddf879
fix panic during middleware execution #226
2018-05-16 11:00:29 -07:00
Luke Cowell
7c395fcc83
replace typo scoupe
with scope
2018-05-08 17:40:18 -07:00
Nikolay Kim
47d80382b2
Fix http/2 payload streaming #215
2018-05-08 15:44:50 -07:00
Nikolay Kim
8cda362866
simplify pipeline
2018-05-07 16:09:41 -07:00
Nikolay Kim
72908d974c
test for Scope::route(); prep release
2018-05-07 15:19:03 -07:00
Nikolay Kim
c755d71a8b
add filters support to scopes
2018-05-07 14:40:04 -07:00
Nikolay Kim
a817ddb57b
add variable segments support for scope prefix
2018-05-07 13:50:43 -07:00
Nikolay Kim
0af4d01fe4
move middleware tests to seprate module
2018-05-05 12:18:43 -07:00
Nikolay Kim
acd7380865
rename Reply to a AsyncResult
2018-05-03 16:22:08 -07:00
Nikolay Kim
7036656ae4
make Reply generic over error too
2018-05-02 16:33:29 -07:00
Nikolay Kim
a1958deaae
add impl Future for Reply
2018-05-01 17:30:06 -07:00
Nikolay Kim
8d65468c58
refactor FromRequest trait
2018-05-01 17:19:15 -07:00
Nikolay Kim
48e05a2d87
add nested scope support
2018-04-30 22:04:24 -07:00
Nikolay Kim
d43ca96c5c
Allow to use ssl and non-ssl connections with the same HttpServer #206
2018-04-30 19:51:55 -07:00
Nikolay Kim
bfd46e6a71
update doc string
2018-04-29 22:28:16 -07:00
Nikolay Kim
25b245ac72
allow to use custom state for scope
2018-04-29 22:19:52 -07:00
Nikolay Kim
ab4e889f96
add middleware finished handler for route middleware
2018-04-29 20:50:38 -07:00
Nikolay Kim
9c1bda3eca
fix stable compiler compatibility
2018-04-29 19:49:26 -07:00
Nikolay Kim
4a29f12876
update doc string; missing file
2018-04-29 19:39:28 -07:00