1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2025-01-02 05:18:44 +00:00
Commit graph

158 commits

Author SHA1 Message Date
Nikolay Kim
a2245c1751 add rust-tls support 2018-09-27 21:06:27 -07:00
Nikolay Kim
65fd23c648 add native-tls support 2018-09-27 20:23:30 -07:00
Nikolay Kim
d19ed8b00a add Either service 2018-09-27 17:05:48 -07:00
Nikolay Kim
ba57e67a74 expose ServerMessage service 2018-09-26 20:40:45 -07:00
Nikolay Kim
13c66a2ac4 better FramedTransportError 2018-09-24 22:31:05 -07:00
Nikolay Kim
d5d2c81c68 simplify FramedTransport response 2018-09-24 21:03:05 -07:00
Nikolay Kim
205079adce simplify framed transport error 2018-09-24 20:51:53 -07:00
Nikolay Kim
d4b772d454 simplify FramedTransport 2018-09-24 20:40:31 -07:00
Nikolay Kim
7686011c1a refactor FramedTransport, add separate service for error handling 2018-09-24 20:06:20 -07:00
Nikolay Kim
01bed8b2e5 rename FramedDispatcher to FramedTransport 2018-09-24 17:50:29 -07:00
Nikolay Kim
477e1d6953 add keep-alive service 2018-09-20 11:16:12 -07:00
Nikolay Kim
ffe73c6875 add low res timer service 2018-09-19 15:05:14 -07:00
Nikolay Kim
4c422983ba remove fn state service 2018-09-19 08:04:31 -07:00
Nikolay Kim
601c8a4ee6 add CloneableService 2018-09-17 21:46:02 -07:00
Nikolay Kim
ed23caa314 add name to service registration 2018-09-17 20:19:48 -07:00
Nikolay Kim
4827990298 add NewServiceExt tests 2018-09-17 19:21:24 -07:00
Nikolay Kim
90ad1b12a8 do not constrain InitError for from_err new service 2018-09-17 18:49:55 -07:00
Nikolay Kim
e0f4aac3b4 add NewService::from_err combinator 2018-09-17 18:10:23 -07:00
Nikolay Kim
20cff6fc0b update apply tests 2018-09-17 16:50:35 -07:00
Nikolay Kim
a91b9a2f9e better ergonomics for aply combinator 2018-09-17 16:16:42 -07:00
Nikolay Kim
3384bbfae2 change apply combinator 2018-09-17 15:53:41 -07:00
Nikolay Kim
39a18d6969 add in-flight service 2018-09-14 13:30:29 -07:00
Nikolay Kim
2927a49fdf better method names 2018-09-14 13:12:55 -07:00
Nikolay Kim
39c3902818 rename Connections to more generic Counter and export it 2018-09-14 13:07:38 -07:00
Nikolay Kim
9888c1c5e6 fix switching to unavailable state for worker 2018-09-14 00:07:50 -07:00
Nikolay Kim
ec7757f032 refactor worker availibility management 2018-09-13 23:46:18 -07:00
Nikolay Kim
2764323580 fix service availability check 2018-09-13 13:32:51 -07:00
Nikolay Kim
d50829d956 add framed related services and utils 2018-09-12 18:47:39 -07:00
Nikolay Kim
62dbe1b001 add some doc apis and tests 2018-09-12 13:34:53 -07:00
Nikolay Kim
f66eec00e7 restart failed services; fix readiness check 2018-09-12 08:25:14 -07:00
Nikolay Kim
3395512040 fix api doc link 2018-09-11 14:01:51 -07:00
Nikolay Kim
f0554efb98 remove wrong doc example 2018-09-11 11:28:13 -07:00
Nikolay Kim
82b71d91ea move Service to service sub mod 2018-09-11 09:30:22 -07:00
Nikolay Kim
abef930f87 fix openssl uses 2018-09-11 08:59:03 -07:00
Nikolay Kim
dc50268c8a move server impl to sub module 2018-09-11 08:43:23 -07:00
Nikolay Kim
56b31960f1 derive Debug for connector/resolver error 2018-09-10 20:03:10 -07:00
Nikolay Kim
d8ed9ae43a create Connector with custom Resolver 2018-09-10 19:42:51 -07:00
Nikolay Kim
88d8c99e31 use Resolver service for Connector 2018-09-10 19:39:55 -07:00
Nikolay Kim
2698534b05 add resolver service 2018-09-10 19:16:46 -07:00
Nikolay Kim
a1e875e985 add Clone impl for DefaultConnector 2018-09-10 11:16:58 -07:00
Nikolay Kim
fbfca66e21 add DefaultConnector 2018-09-10 10:59:35 -07:00
Nikolay Kim
3fe029a8ad remove unneeded code 2018-09-10 10:01:58 -07:00
Nikolay Kim
552d19a0eb add generic server service factory 2018-09-08 14:50:16 -07:00
Nikolay Kim
4264574af1 fix openssl NewService definition 2018-09-08 12:58:08 -07:00
Nikolay Kim
c2eff62efb openssl new service is not failable 2018-09-08 12:52:43 -07:00
Nikolay Kim
bf10f6dfcf simplify openssl acceptor 2018-09-08 10:16:43 -07:00
Nikolay Kim
8b13236d41 refactor connections counter 2018-09-08 09:36:38 -07:00
Nikolay Kim
5f016bd53c export server mod 2018-09-07 23:27:00 -07:00
Nikolay Kim
4e186cc6d2 explicitly use unit for server service error 2018-09-07 14:49:17 -07:00
Nikolay Kim
0fdce01375 remove Display from server service Error 2018-09-07 14:34:31 -07:00
Nikolay Kim
d4808acee1 implement worker availability system 2018-09-07 13:06:51 -07:00
Nikolay Kim
8298da0f4a change InitError type 2018-09-07 11:42:22 -07:00
Nikolay Kim
db1fe14fd2 add service readiness to ServerService 2018-09-07 11:35:25 -07:00
Nikolay Kim
467350c9fc add readiness support for OpensslAcceptor 2018-09-07 10:38:39 -07:00
Nikolay Kim
d917b47868 remove unneeded phantom data 2018-09-06 18:03:01 -07:00
Nikolay Kim
0525da70bf add Clone impl for FromErr combinator 2018-09-05 19:27:52 -07:00
Nikolay Kim
983223a839 add clone impls for combinator services 2018-09-05 13:54:15 -07:00
Nikolay Kim
8540d81dcf stable compat 2018-09-04 12:42:06 -07:00
Nikolay Kim
9456065d7b better error conversion impl for and_then 2018-09-04 12:07:13 -07:00
Nikolay Kim
41eddae266 move into fn service impl 2018-09-04 09:57:47 -07:00
Nikolay Kim
0390ff37d3 Revert "use From/Into instead of custom IntoService and IntoNewService traits"
This reverts commit 9441624827.
2018-09-04 09:49:21 -07:00
Nikolay Kim
dfa08b3bf1 remove uneeded map_request 2018-09-04 09:32:37 -07:00
Nikolay Kim
9441624827 use From/Into instead of custom IntoService and IntoNewService traits 2018-09-04 09:30:52 -07:00
Nikolay Kim
42a49da199 add StreamDispatcher 2018-09-01 10:29:56 -07:00
Nikolay Kim
27af05de9a simplify Apply combinator 2018-08-31 12:51:26 -07:00
Nikolay Kim
c2d73873cc rename Apply combinator 2018-08-30 17:54:59 -07:00
Nikolay Kim
7ff24863ab add apply() combinator 2018-08-30 17:46:11 -07:00
Nikolay Kim
fbd17e43f3 fix ApplyService constraint 2018-08-30 15:12:01 -07:00
Nikolay Kim
eaa9d4b273 allow to change Connector's request type 2018-08-30 10:06:47 -07:00
Nikolay Kim
061a0339ff convert to new service 2018-08-30 09:38:09 -07:00
Nikolay Kim
a928d82895 rename Apply service 2018-08-30 09:26:27 -07:00
Nikolay Kim
e0513e4085 replace partial with more generic Apply 2018-08-30 09:17:17 -07:00
Nikolay Kim
42b0d53c16 change AndThen InitError constrain 2018-08-29 21:31:43 -07:00
Nikolay Kim
9b48e952b8 add map_request combinator 2018-08-29 20:20:33 -07:00
Nikolay Kim
77cf7016b7 add partial combinator 2018-08-29 20:19:30 -07:00
Nikolay Kim
918c764641 use String as default type for Connector 2018-08-29 15:28:16 -07:00
Nikolay Kim
361ffd8d2f refactor Connector service 2018-08-29 15:15:24 -07:00
Nikolay Kim
7ec92f7b1c export ServiceExt trait 2018-08-29 12:26:27 -07:00
Nikolay Kim
eeb4f8c61c add Service combinators 2018-08-29 12:20:35 -07:00
Nikolay Kim
6f607e79db export configurable mod 2018-08-28 22:28:13 -07:00
Nikolay Kim
cb1ea341c3 make new public 2018-08-28 20:32:01 -07:00
Nikolay Kim
f689f6500a export more service types 2018-08-28 20:29:56 -07:00
Nikolay Kim
10d2c67596 better Connector impl 2018-08-28 16:24:36 -07:00
Nikolay Kim
6ec5e958ac add .map service combinator 2018-08-28 10:39:27 -07:00
Nikolay Kim
71d725d250 add Connector helper method 2018-08-27 21:53:20 -07:00
Nikolay Kim
f9b9031af2 add clone impls 2018-08-27 20:32:49 -07:00
Nikolay Kim
ddfe1322a1 use same Request for OpensslConnector service as for connector 2018-08-27 14:29:01 -07:00
Nikolay Kim
c69d675113 Connector::Response returns addr and tcp stream 2018-08-27 14:20:41 -07:00
Nikolay Kim
3dbaef3ec1 move config to generic type 2018-08-25 14:46:05 -07:00
Nikolay Kim
89b8da724b split service mod 2018-08-25 09:02:14 -07:00
Nikolay Kim
0eae4d84b1 fix and and then new service 2018-08-24 13:18:05 -07:00
Nikolay Kim
f2ef824011 add NewConfigurableService trait 2018-08-23 22:12:10 -07:00
Nikolay Kim
aba9b09450 export ConnectorError 2018-08-23 20:52:31 -07:00
Nikolay Kim
234c76f8bc add connector 2018-08-23 20:47:41 -07:00
Nikolay Kim
a5a026b5c4 remove custom NewService and cleanups 2018-08-23 15:42:34 -07:00
Nikolay Kim
1261ecbce0 fix examples 2018-08-23 13:39:13 -07:00
Nikolay Kim
d97f78afbe use factory function instead of NewService for service registration 2018-08-23 13:16:14 -07:00
Nikolay Kim
2818540d69 fix error mapping in MapErrNewService 2018-08-22 18:18:11 -07:00
Nikolay Kim
c7543e7228 add Server::configure helper 2018-08-22 11:36:56 -07:00
Nikolay Kim
26f472649a default impl for fork method 2018-08-22 11:12:06 -07:00