1
0
Fork 0
mirror of https://github.com/ntex-rs/ntex.git synced 2025-04-06 14:27:39 +03:00
Commit graph

119 commits

Author SHA1 Message Date
Nikolay Kim
8288fc0364
Use updated Service trait () 2024-11-02 17:44:35 +05:00
Nikolay Kim
011e9cdfea
Added Service::not_ready() method () 2024-11-02 12:49:49 +05:00
Nikolay Kim
fc67031a3a
Fix shared readiness notification () 2024-10-31 15:31:37 +05:00
Nikolay Kim
5429eb7d24
Introduce PipelineTag, which allows to notify pipeline binding () 2024-10-19 09:42:28 +09:00
Nikolay Kim
d101fbc668 Do not check readiness for dispatcher call 2024-10-10 18:57:24 +05:00
Nikolay Kim
effce6915f
Notify readiness waiters if ready call get dropped () 2024-09-29 16:39:26 +05:00
Nikolay Kim
3edb54ffdf
Fix tests runner () 2024-09-05 19:32:38 +05:00
Nikolay Kim
d39611d246
Clippy warnings () 2024-07-16 22:13:33 +02:00
Nikolay Kim
e0b5284fdd
More tests () 2024-05-29 20:30:14 +05:00
Nikolay Kim
34142e1ae2
Fix handling not consumed request's payload () 2024-05-29 18:29:49 +05:00
Nikolay Kim
9c29de14cf
Fix handling payload timer after payload got consumed () 2024-05-29 17:42:18 +05:00
Nikolay Kim
3b49828e5f
Use async fn for Service::ready() and Service::shutdown() () 2024-05-28 19:26:08 +05:00
Nikolay Kim
dec6ab083a
Use "async fn" for Service::ready() and Service::shutdown() methods () 2024-05-28 16:37:16 +05:00
Nikolay Kim
d393d87164
Refactor worker management () 2024-03-23 07:17:04 +01:00
Nikolay Kim
661c5ea1fa Clippy warnings () 2024-03-12 17:53:26 +05:00
Nikolay Kim
a8447b1f6d
Update deps () 2024-02-07 06:01:17 -06:00
Nikolay Kim
b19cb340a7
Add fmt::Debug impl for PipelineCall () 2024-02-07 04:29:35 -06:00
Nikolay Kim
112c127eb9
Use async fn for Responder and Handler traits () 2024-01-09 23:26:17 +06:00
Nikolay Kim
e30d5c0fa5 Prep ntex release 2024-01-09 22:25:07 +06:00
Nikolay Kim
587b248b57 Prepare io release 2024-01-09 21:10:26 +06:00
Nikolay Kim
c864b10e62 Prepare release 2024-01-09 20:17:07 +06:00
Nikolay Kim
5869141954
Various cleanups () 2024-01-09 19:35:38 +06:00
Nikolay Kim
48eb1c5e54 Update license 2024-01-08 21:32:26 +06:00
Nikolay Kim
412944e973 Prepare release 2024-01-07 20:26:26 +06:00
Nikolay Kim
4950eb4167 Migrate ntex to async fn in trait 2024-01-07 19:26:44 +06:00
Nikolay Kim
a9d5845005 Use async fn in trait for Service definition 2024-01-07 11:32:41 +06:00
Nikolay Kim
c011bc68c3
Use From<T::Error> for apply_fn util ()
* Use From<T::Error> for apply_fn util
2023-09-20 00:42:23 +06:00
Nikolay Kim
02e111d373
Add missing fmt::Debug impls ()
* Add missing fmt::Debug impls
2023-09-11 21:43:07 +06:00
Nikolay Kim
19cc8ab315 Clippy 2023-09-05 15:49:49 +06:00
Nikolay Kim
996f2afdb7 Use Pipeline<T> instead of ApplyService<T> 2023-08-14 16:23:10 +06:00
Nikolay Kim
17ffaf105e
Add .apply_fn() for chain and chain factory ()
* Add .apply_fn() for chain and chain factory
2023-08-12 17:55:00 +06:00
Nikolay Kim
594bf0a8e2
Refactor pipeline call impl ()
* Refactor pipeline call impl
2023-08-10 22:10:02 +06:00
Nikolay Kim
2e66b4b361 Update tests 2023-06-26 10:00:16 +06:00
Will Brown
eea5b3b539
Synchronized buffer ()
* added a new function to servicecall to allow only advancing to the service call and then returning the service response future
* buffer can maintain order/backpressure by implementing strict readiness and synchronous calling
* buffer can flush in order or cancel pending buffered futures on shutdown
2023-06-26 09:19:56 +06:00
Nikolay Kim
4380b3a155
PipelineCall is static ()
* PipelineCall is static

* Fix static lifetimes req
2023-06-23 23:11:16 +06:00
Nikolay Kim
1fd6311a5d Update changes 2023-06-22 18:43:25 +06:00
Nikolay Kim
6382ef6b40
Refactor service pipelines () 2023-06-22 18:39:09 +06:00
Nikolay Kim
a02009d7be Update docs 2023-06-21 10:30:56 +06:00
Nikolay Kim
589b48f073 Link apply_fn service readiness with parent 2023-06-21 10:24:16 +06:00
Nikolay Kim
ea14e8f0f4
Add ContainerCall future ()
* Add Container::static_call(), returns future that is suitable for spawning into runtime

* Remove unsafe from h1 dispatcher

* Make call_nowait public

* Update MSRV
2023-06-21 10:21:43 +06:00
Nikolay Kim
50528b11ff
Remove Deref for Container<T> () 2023-06-19 22:31:07 +06:00
Nikolay Kim
108e2ac20a Rename Ctx to ServiceCtx 2023-06-19 18:47:15 +06:00
Nikolay Kim
b350280dba Slight optimization and docs 2023-06-16 23:29:56 +06:00
Nikolay Kim
1b199712a9 Update versions 2023-06-16 20:32:52 +06:00
Nikolay Kim
274488bd84 Remove boxed rc service 2023-06-16 00:16:14 +06:00
Nikolay Kim
e450ac80b8 Make Ctx copy 2023-06-16 00:16:14 +06:00
Nikolay Kim
7960b550c9 Migrate to ntex-service 1.2 ()
* Migrate to ntex-service 1.2
2023-06-16 00:16:14 +06:00
Nikolay Kim
0e1f0b5f73 Service container ()
* Enforce service readiness during call
* Introduce service sharable readiness
2023-06-16 00:16:14 +06:00
Nikolay Kim
44ff6a8ee6
Remove Rc<S> where S: Service as it brakes readiness check validity ()
* Add SharedService, a service that can be checked for readiness by multiple tasks
2023-04-14 09:48:27 -07:00
Nikolay Kim
29e04cf478
Switch to 2021 edition () 2023-02-02 19:30:07 +01:00