Nikolay Kim
6c9f9fff73
clippy warnings
2019-12-08 00:46:51 +06:00
Nikolay Kim
8df33f7a81
remove HttpServer::run() as it is not useful with async/await
2019-12-08 00:06:04 +06:00
Nikolay Kim
ed2f3fe80d
use actix-net alpha.3 release
2019-12-07 12:28:26 +06:00
Nikolay Kim
205a964d8f
upgrade to tokio 0.2
2019-12-05 23:35:43 +06:00
Nikolay Kim
f4c01384ec
update to latest actix-net
2019-12-02 17:33:11 +06:00
Nikolay Kim
3127dd4db6
migrate actix-web to std::future
2019-11-21 16:02:17 +06:00
karlri
c659c33919
Feature uds: Add listen_uds to ServerBuilder ( #1085 )
...
Allows using an existing Unix Listener instead of binding to a path.
Useful for when running as a daemon under systemd.
Change-Id: I54a0e78c321d8b7a9ded381083217af590e9a7fa
2019-09-25 15:16:51 +06:00
Cyril Plisko
6f2049ba9b
Fix typo
2019-07-25 12:54:59 +01:00
Nikolay Kim
fbdda8acb1
Unix domain sockets (HttpServer::bind_uds) #92
2019-07-18 17:24:12 +06:00
Nikolay Kim
4092c7f326
clippy warnings
2019-07-17 15:08:30 +06:00
Vlad Frolov
801cc2ed5d
Cleaned unnecessary Option<_> around ServerBuilder in server.rs/HttpServer ( #863 )
2019-05-23 05:21:02 -07:00
Herbert Jones
e857ab1f81
HttpServer::shutdown_timeout u16 to u64 ( #849 )
...
Increase maximum graceful shutdown time from 18 hours.
For issue #848 .
2019-05-18 10:50:35 -07:00
Nikolay Kim
df08baf67f
update actix-net dependencies
2019-05-12 08:34:51 -07:00
Nikolay Kim
fbedaec661
add expect: 100-continue support #141
2019-04-05 16:46:44 -07:00
Nikolay Kim
c126713f40
add rustls support to HttpServer
2019-03-29 16:28:32 -07:00
Nikolay Kim
86405cfe7a
more tests
2019-03-12 22:57:09 -07:00
Nikolay Kim
eae48f9612
use server backlog
2019-03-11 15:26:05 -07: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
6e638129c5
use generic HttpService
2019-03-06 23:06:14 -08:00
Nikolay Kim
fe22e83144
refactor service registration process; unify services and resources
2019-03-06 15:47:15 -08:00
Nikolay Kim
03248028a9
update actix-service
2019-03-05 10:08:08 -08:00
Nikolay Kim
2e79562c9d
add HttpServer type
2019-03-04 16:29:03 -08:00
Nikolay Kim
8a058efb4e
move server protocol impl to submodule
2018-01-11 18:35:05 -08:00
Nikolay Kim
f802fe09e6
fix context poll
2018-01-07 17:13:49 -08:00
Nikolay Kim
71da72efdb
use general context impl
2018-01-06 22:59:39 -08:00
Nikolay Kim
3ed9e872ad
subscriber to os signals automatically
2018-01-05 16:32:36 -08:00
Nikolay Kim
5ff35f5b99
upgrade to actix 0.4
2018-01-05 13:30:21 -08:00
Nikolay Kim
9559f6a175
introduce IoStream trait for low level stream operations
2018-01-03 23:41:55 -08:00
Nikolay Kim
1f7aee23df
shutdown io streams before exit
2018-01-03 22:43:44 -08:00
Nikolay Kim
3d3e4dae9a
refactor IntoHttpHandler trait
2017-12-29 11:33:04 -08:00
Nikolay Kim
538fea8027
add graceful shutdown system
2017-12-28 16:25:47 -08:00
Nikolay Kim
3f4898a6d1
add StopWorker message
2017-12-28 13:07:29 -08:00
Nikolay Kim
6a2bb9a473
split worker code to separate module
2017-12-28 12:38:37 -08:00
Nikolay Kim
783e19c1bf
fix RequestSession impl for HttpRequest
2017-12-28 11:43:45 -08:00
Nikolay Kim
d80a0c9f94
add support for unix signals
2017-12-28 11:36:20 -08:00
Nikolay Kim
556de72932
add server spawn method
2017-12-27 17:49:10 -08:00
Nikolay Kim
4d741b4de5
Fix typos
2017-12-27 13:26:31 -08:00
Nikolay Kim
0589f2ee49
add server management commands
2017-12-27 12:58:32 -08:00
Nikolay Kim
da8aa8b988
use mio for accept loop
2017-12-27 11:22:27 -08:00
Nikolay Kim
f6510161b5
add simple TestServer for integrational tests cases
2017-12-26 16:35:00 -08:00
Nikolay Kim
e3b0f02794
fix type for disable feartures
2017-12-26 15:17:20 -08:00
Nikolay Kim
9521de5746
HttpServer::addrs() return all bound socket addresses
2017-12-26 14:45:38 -08:00
Nikolay Kim
dd3a2aa68a
add HttpServer::server_hostname method
2017-12-26 14:36:03 -08:00
Nikolay Kim
cce9c68a10
add doc string
2017-12-26 12:46:27 -08:00
Nikolay Kim
cf8c2ca95e
refactor Handler trait, use mut self
2017-12-26 09:00:45 -08:00
Nikolay Kim
13cbfc877d
simplify server start method
2017-12-19 09:08:36 -08:00
Nikolay Kim
2124730e0a
guide update
2017-12-18 18:56:58 -08:00
Nikolay Kim
9ed4159c0c
update examples
2017-12-18 13:06:41 -08:00