Commit Graph

263 Commits

Author SHA1 Message Date
Jan Michael Auer 86fdbb47a5 Fix system_exit in HttpServer (#501) 2018-09-05 10:41:23 +02:00
Robert Gabriel Jakabosky 0425e2776f Fix Issue #490 (#498)
* Add failing testcase for HTTP 404 response with no reason text.

* Include canonical reason test for HTTP error responses.

* Don't send a reason for unknown status codes.
2018-09-01 12:00:32 +03:00
Nikolay Kim 6464f96f8b Merge branch 'master' of https://github.com/actix/actix-web 2018-08-31 18:56:53 -07:00
Nikolay Kim a2b170fec9 fmt 2018-08-31 18:56:21 -07:00
Nikolay Kim 0b42cae082 update tests 2018-08-31 18:54:19 -07:00
Nikolay Kim c313c003a4
Fix typo 2018-08-31 17:45:29 -07:00
Nikolay Kim 2d51831899 handle socket read disconnect 2018-08-31 17:24:13 -07:00
Robert G. Jakabosky 8393d09a0f Fix tests. 2018-08-27 00:31:31 +08:00
Robert G. Jakabosky c3ae9997fc Fix bug with http1 client disconnects. 2018-08-26 22:21:05 +08:00
0x1793d1 471a3e9806 Fix server startup log message 2018-08-24 23:21:32 +02:00
Nikolay Kim 9ef7a9c182 hide AcceptorService 2018-08-23 11:30:49 -07:00
Nikolay Kim 3dafe6c251 hide token and server flags 2018-08-23 11:30:07 -07:00
Nikolay Kim 1716380f08 clippy fmt 2018-08-23 09:48:01 -07:00
Nikolay Kim cf54be2f17 hide new server api 2018-08-23 09:39:11 -07:00
Kornel bdc9a8bb07 Optionally support tokio-uds's UnixStream as IoStream (#472) 2018-08-17 19:04:15 +03:00
Douman 248bd388ca
Improve HTTP server docs (#470) 2018-08-16 16:11:15 +03:00
Nikolay Kim 26629aafa5 explicit use 2018-08-09 13:41:13 -07:00
Nikolay Kim 2ab7dbadce better ergonomics for Server::service() method 2018-08-09 13:38:10 -07:00
Nikolay Kim 2e8d67e2ae upgrade native-tls package 2018-08-09 13:08:59 -07:00
Nikolay Kim e4ce6dfbdf refactor workers management 2018-08-09 11:52:32 -07:00
Nikolay Kim 8eb9eb4247 flush io on complete 2018-08-08 09:12:32 -07:00
Nikolay Kim 992f7a11b3 remove debug println 2018-08-07 22:40:09 -07:00
Nikolay Kim 30769e3072 fix http/2 error handling 2018-08-07 20:48:25 -07:00
Nikolay Kim 57f991280c fix protocol order for rustls acceptor 2018-08-07 13:53:24 -07:00
Nikolay Kim 85acc3f8df deprecate HttpServer::no_http2(), update changes 2018-08-07 12:49:40 -07:00
Nikolay Kim 58a079bd10 include content-length to error response 2018-08-07 11:56:39 -07:00
Douman 86a5afb5ca Reserve enough space for ServerError task to write status line 2018-08-07 17:34:24 +03:00
Douman 900fd5a98e Correct settings headers for HTTP2
Add test to verify number of Set-Cookies
2018-08-04 18:05:41 +03:00
Nikolay Kim 84b27db218 fix no_http2 flag 2018-08-03 19:40:43 -07:00
Nikolay Kim ac9180ac46 simplify channel impl 2018-08-03 19:32:46 -07:00
Nikolay Kim e34b5c08ba allow to pass extra information from acceptor to application level 2018-08-03 19:24:53 -07:00
Nikolay Kim f3f1e04853 refactor ssl support 2018-08-03 16:09:46 -07:00
Jan Michael Auer e61ef7dee4 Use zlib instead of deflate for content encoding (#442) 2018-08-03 14:56:26 +02:00
Mathieu Amiot f8e5d7c6c1 Fixed broken build on wrong variable usage (#440) 2018-08-03 14:11:51 +03:00
Nikolay Kim 8c89c90c50 add accept backpressure #250 2018-08-02 23:17:10 -07:00
Nikolay Kim 58230b15b9 use one thread for accept loop; refactor rust-tls support 2018-07-31 19:51:26 -07:00
Nikolay Kim 3bd43090fb use new gzdecoder, fixes gz streaming #228 2018-07-31 09:06:05 -07:00
Nikolay Kim 7bc0ace52d move server accept impl to seprate module 2018-07-30 13:42:42 -07:00
Marat Safin 196da6d570 add rustls 2018-07-30 08:21:12 +03:00
Nikolay Kim 80fbc2e9ec Fix stream draining for http/2 connections #290 2018-07-25 15:38:02 -07:00
Nikolay Kim f58065082e fix missing content-encoding header for h2 connections #421 2018-07-25 10:30:55 -07:00
Nikolay Kim 42d3e86941 calculate prefix dynamicly 2018-07-15 16:25:56 +06:00
Nikolay Kim 8e462c5944 use write instead format 2018-07-12 10:35:09 +06:00
Nikolay Kim 28b36c650a fix h2 compatibility 2018-07-11 13:25:07 +06:00
Nikolay Kim 9aef34e768 remove & to &mut transmute #385 2018-07-11 12:56:35 +06:00
Douman 82920e1ac1
Do not override user settings on signals and stop handling (#375) 2018-07-08 09:01:44 +03:00
Nikolay Kim 110605f50b stop actor context on error #311 2018-07-08 09:41:55 +06:00
Diggory Blake 85012f947a Remove reimplementation of `LazyCell` 2018-07-06 22:28:08 +01:00
Nikolay Kim 185e710dc8 do not drop content-encoding header in case of identity #363 2018-07-06 08:24:36 +06:00
Nikolay Kim 8058d15624 clippy warnings 2018-07-05 13:16:16 +06:00