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
Nikolay Kim
05a43a855e
remove unsafe
2018-07-05 13:00:46 +06:00
Nikolay Kim
80339147b9
call disconnect on write error
2018-07-05 12:50:54 +06:00
Nikolay Kim
6af2f5d642
re-enable start_incoming support
2018-07-05 12:14:10 +06:00
Nikolay Kim
d5606625a2
remove public Clone for Request
2018-07-04 22:57:40 +06:00
Nikolay Kim
5d79114239
optimize Request handling
2018-07-04 22:52:49 +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
32212bad1f
simplify http response pool
2018-06-25 09:08:28 +06:00
Nikolay Kim
c0cdc39ba9
do not store cookies on client response
2018-06-24 22:21:04 +06:00
Nikolay Kim
8e8a68f90b
add empty output stream
2018-06-24 22:05:44 +06:00
Nikolay Kim
989cd61236
handle empty te
2018-06-24 10:59:01 +06:00
Nikolay Kim
33260c7b35
split encoding module
2018-06-24 10:42:20 +06:00
Nikolay Kim
40ca9ba9c5
simplify write buffer
2018-06-24 10:30:58 +06:00
Nikolay Kim
45682c04a8
refactor content encoder
2018-06-24 08:54:01 +06:00
Nikolay Kim
e3dc6f0ca8
refactor h1decoder
2018-06-23 12:28:55 +06:00
Nikolay Kim
ff0ab733e4
remove unsafe from mask
2018-06-23 11:51:02 +06:00
Nikolay Kim
756227896b
update set_date impl
2018-06-23 10:13:09 +06:00
Nikolay Kim
fc7238baee
refactor read_from_io
2018-06-22 11:30:40 +06:00
Nikolay Kim
edd22bb279
refactor read_from_io
2018-06-22 09:01:20 +06:00
Nikolay Kim
17c033030b
Revert "remove unnecessary use of unsafe in read_from_io"
...
This reverts commit da237611cb
.
2018-06-22 08:55:19 +06:00
Nikolay Kim
3afdf3fa7e
Merge pull request #335 from gnzlbg/fix_unsafe
...
remove unnecessary use of unsafe in read_from_io
2018-06-22 07:23:14 +06:00
Nikolay Kim
3de9284592
Handler::handle uses &self instead of mutabble reference
2018-06-21 17:07:54 +06:00
Nikolay Kim
58d1f4a4aa
switch to actix master
2018-06-21 13:34:36 +06:00
gnzlbg
da237611cb
remove unnecessary use of unsafe in read_from_io
2018-06-20 13:14:53 +02:00
Jef
234c60d473
Fix some unsoundness
...
This improves the sound implementation of `fn route`.
Previously this function would iterate twice but we
can reduce the overhead without using `unsafe`.
2018-06-20 10:53:18 +02:00
Nikolay Kim
a69c1e3de5
remove unsafe from scope impl
2018-06-19 23:46:58 +06:00
Nikolay Kim
261ad31b9a
remove some unsafe code
2018-06-19 07:44:01 +06:00
Nikolay Kim
26f37ec2e3
refactor HttpHandlerTask trait
2018-06-18 05:45:54 +06:00
Nikolay Kim
ef15646bd7
refactor edfault cpu pool
2018-06-18 04:56:18 +06:00
Nikolay Kim
a5bbc455c0
cleanup mut transform
2018-06-18 04:41:41 +06:00
Nikolay Kim
e1db47d550
refactor server settings
2018-06-17 23:51:20 +06:00
Nikolay Kim
70244c29e0
update doc api examples
2018-06-17 04:09:07 +06:00
Nikolay Kim
a7a062fb68
clippy warnings
2018-06-17 03:26:34 +06:00
Nikolay Kim
e4443226f6
update actix usage
2018-06-17 02:58:56 +06:00
Nikolay Kim
342a194605
fix handling ServerCommand #316
2018-06-16 22:56:27 +06:00
Nikolay Kim
8261cf437d
update actix api
2018-06-13 23:37:19 -07:00
Nikolay Kim
99092fdf06
http/2 end-of-frame is not set if body is empty bytes #307
2018-06-12 14:50:21 -07:00
Nikolay Kim
818d0bc187
new StreamHandler impl
2018-06-09 07:53:46 -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
Nikolay Kim
c8930b7b6b
fix rustfmt formatting
2018-06-01 10:27:23 -07:00
Nikolay Kim
154cd3c5de
better actix mod re-exports
2018-06-01 09:36:16 -07:00
Douman
80965d7a9a
Re-export actix dependency. Closes #260 ( #264 )
...
- Re-export actix's prelude into actix namespace
- Removing implicit dependency on root's actix module
2018-05-31 20:43:14 +03:00
Nikolay Kim
a64205e502
refactor TransferEncoding; allow to use client api with threaded tokio runtime
2018-05-29 16:32:39 -07:00
Nikolay Kim
844be8d9dd
fix ssl test server
2018-05-29 10:59:24 -07:00
Nikolay Kim
ecd05662c0
use new actix system api
2018-05-29 10:31:37 -07:00
Nikolay Kim
be2ceb7c66
update actix Addr; make ClientConnector thread safe
2018-05-27 05:02:49 -07:00
Nikolay Kim
690169db89
migrate to tokio
2018-05-24 21:03:16 -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
2159158c30
Fix streaming response with body compression
2018-05-21 20:50:10 -07:00
Nikolay Kim
90968d4333
Drop connection if request's payload is not fulle consumed #236
2018-05-21 18:54:17 -07:00
Nikolay Kim
285c73e95e
Re-use tcp listener on pause/resume
2018-05-20 20:47:20 -07:00
Nikolay Kim
483db7028c
expose low level data
2018-05-20 20:37:19 -07:00
Sindre Johansen
0126ac46fc
Fix some typos in server/srv.rs
...
Hello! This looks like a great library, thanks for creating it! While reading through the documentation I found a few typos.
2018-05-20 14:43:26 +02:00
Nikolay Kim
537b420d35
Fix compilation with --no-default-features
2018-05-17 18:33:48 -07:00
Nikolay Kim
16906c5951
clippy warnings
2018-05-17 12:23:37 -07:00
Nikolay Kim
45e9aaa462
rustfmt 0.7
2018-05-17 12:20:20 -07:00
Nikolay Kim
f3ece74406
better error handling
2018-05-17 10:58:08 -07:00
Armin Ronacher
7bb7d85c1d
Added support for returning addresses plus scheme from the server
2018-05-16 16:17:27 +02:00
Armin Ronacher
6e976153e7
Add support for listen_tls/listen_ssl
2018-05-16 15:20:47 +02:00
Nikolay Kim
0d36b8f826
fix 1.24 compatibility
2018-05-15 19:07:43 -07:00
Nikolay Kim
f82fa08d72
various optimizations
2018-05-15 16:49:03 -07:00
Nikolay Kim
953a0d4e4a
add test case for #222
2018-05-15 09:29:59 -07:00
Nikolay Kim
5ea2d68438
h1 decoder blocks on error #222
2018-05-15 07:55:36 -07:00
Nikolay Kim
9306631d6e
Fix segfault in ServerSettings::get_response_builder()
2018-05-11 21:19:48 -07:00
Nikolay Kim
47d80382b2
Fix http/2 payload streaming #215
2018-05-08 15:44:50 -07:00
Nikolay Kim
fa81d97004
more handler tests
2018-05-06 20:05:31 -07:00
Nikolay Kim
c54f045b39
more handler tests
2018-05-06 15:11:36 -07:00
Nikolay Kim
195246573e
rename threads to workers
2018-05-01 13:15:35 -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
91235ac816
fix reading from socket
2018-04-29 20:34:59 -07:00
Nikolay Kim
368730f5f1
Add route scopes #202
2018-04-29 19:35:50 -07:00
Nikolay Kim
c72d1381a6
clippy warnings
2018-04-29 09:09:08 -07:00
Nikolay Kim
de49796fd1
clippy warnings; fmt
2018-04-28 22:55:47 -07:00
Nikolay Kim
a38c3985f6
refactor http1 parser
2018-04-28 22:20:32 -07:00
Nikolay Kim
5ca904d1db
make flate crate optional
2018-04-24 12:24:04 -07:00
Nikolay Kim
f8af3ef7f4
refactor keep-alive
2018-04-22 15:28:04 -07:00
Nikolay Kim
a826d113ee
add custom request path quoter #182
2018-04-17 12:55:13 -07:00
Nikolay Kim
113f5ad1a8
add rustfmt config
2018-04-13 16:02:01 -07:00
Nikolay Kim
fd87eb59f8
remove reference to master
2018-04-10 10:29:10 -07:00
Nikolay Kim
e757dc5a71
clippy warnings
2018-04-09 14:25:30 -07:00
Nikolay Kim
691457fbfe
update tests
2018-04-06 09:45:10 -07:00
Nikolay Kim
2dafd9c681
do not re-export HttpServer from server module
2018-04-06 08:40:11 -07:00
Nikolay Kim
7be4b1f399
clippy warns
2018-04-04 20:24:09 -07:00
Nikolay Kim
eeae0ddab4
start client timeout for response only
2018-04-04 20:15:47 -07:00
Nikolay Kim
16c212f853
add extractors info to guide
2018-03-31 09:18:25 -07:00
Nikolay Kim
3ee228005d
rename Application
2018-03-31 00:16:55 -07:00
Nikolay Kim
44e3df82f6
simplify http response construction; deprecate httpcodes
2018-03-30 23:07:33 -07:00
Nikolay Kim
8d8f6bedad
update examples
2018-03-30 18:54:38 -07:00
Nikolay Kim
9e751de707
re-arrange modules and exports
2018-03-30 17:31:18 -07:00
Nikolay Kim
3ccaa04575
unhide AsyncResponder; remove unused code
2018-03-30 09:34:03 -07:00
Nikolay Kim
145010a2b0
use unreachable instead of panic
2018-03-29 15:55:27 -07:00
Nikolay Kim
f5636f321b
drop deprecated code
2018-03-29 11:06:44 -07:00
Nikolay Kim
ae6c9cb7fa
re-arrange exports, some doc string updates
2018-03-29 10:44:26 -07:00
Nikolay Kim
68cf32e848
add path and query extractors
2018-03-26 15:58:30 -07:00
Nikolay Kim
a56e5113ee
process transfer-encoding before content-length, fix tests on 32bit platform
2018-03-24 09:22:34 -07:00
Nikolay Kim
47f836cd1b
add helper method for response creation
2018-03-22 21:14:57 -07:00
Nikolay Kim
449709dd7e
add 0.5 sec deley before exit
2018-03-22 18:41:02 -07:00
Nikolay Kim
5a25fd95f5
Fix panic on invalid URL characters #130
2018-03-22 18:08:12 -07:00
Nikolay Kim
b942bcc4a6
Fix long client urls #129
2018-03-22 07:44:16 -07:00
Nikolay Kim
7bcc258b09
Use fast compression setting
2018-03-21 08:56:21 -07:00
Nikolay Kim
d5fa0a9418
disable brotli if feature is not enabled, faster compression
2018-03-21 08:03:21 -07:00
Nikolay Kim
ce6d237cc1
prepare 0.4.10 release
2018-03-20 15:53:39 -07:00
Nikolay Kim
70caa2552b
simplify httpresponse release
2018-03-20 15:51:19 -07:00
Nikolay Kim
c4f4cadb43
Fix http/2 date header generation
2018-03-20 11:40:05 -07:00
Nikolay Kim
6cd40df387
Fix server websockets big payloads support
2018-03-19 17:27:03 -07:00
Nikolay Kim
35ee5d36d8
actix 0.5.5, ws test
2018-03-19 13:12:36 -07:00
Nikolay Kim
e7ec0f9fd7
ws tests and proper write payload ref
2018-03-19 09:30:58 -07:00
Nikolay Kim
e0c8da567c
various optimizations
2018-03-18 11:05:44 -07:00
Nikolay Kim
6d792d9948
simplify h1 parse
2018-03-16 20:56:23 -07:00
Nikolay Kim
84bf282c17
add basic client connection pooling
2018-03-16 12:04:01 -07:00
Nikolay Kim
b15b5e5246
check number of available workers
2018-03-16 11:17:27 -07:00
Nikolay Kim
4096089a3f
allow to disable http/2 support
2018-03-16 08:48:44 -07:00
Nikolay Kim
0f064db31d
Move brotli encoding to a feature
2018-03-13 17:21:22 -07:00
Nikolay Kim
05ff35d383
Fix server keep-alive handling
2018-03-12 16:16:17 -07:00
Nikolay Kim
29c3e8f7ea
update test
2018-03-12 10:19:09 -07:00
Nikolay Kim
6657446433
Allow to set read buffer capacity for server request
2018-03-12 10:01:56 -07:00
Nikolay Kim
b3cdb472d0
remove reserved state for h2 write if buffer is empty
2018-03-12 09:04:54 -07:00
Nikolay Kim
31e1aab9a4
do not log WouldBlock error from socket accept
2018-03-12 09:02:15 -07:00
Nikolay Kim
49f5c335f6
better sleep on error
2018-03-11 16:52:20 -07:00
Nikolay Kim
3e276ac921
Merge branch 'master' into feature/sockets-vec
2018-03-11 16:38:17 -07:00
Nikolay Kim
4af115a19c
Fix steraming response handling for http/2
2018-03-11 16:37:44 -07:00
Nikolay Kim
051703eb2c
Fix connection get closed too early
2018-03-11 15:37:33 -07:00
Nikolay Kim
31fbbd3168
Fix panic on unknown content encoding
2018-03-11 14:50:13 -07:00
messense
9ab0fa604d
Use Vec instead of HashMap to store sockets in HttpServer
2018-03-11 17:29:44 +08:00
Nikolay Kim
6c709b33cc
return error on write zero bytes
2018-03-10 10:42:46 -08:00
messense
9a404a0c03
Impl From<usize> and From<Option<usize>> for KeepAlive
2018-03-10 17:52:50 +08:00
Nikolay Kim
05f5ba0084
refactor keep-alive; fixed write to socket for upgraded connection
2018-03-09 16:21:14 -08:00
Nikolay Kim
2853086463
add write buffer capacity config
2018-03-09 10:00:15 -08:00
Nikolay Kim
ebdc983dfe
optimize websocket stream
2018-03-08 17:19:50 -08:00
Nikolay Kim
ffb89935b6
update all features
2018-03-07 21:37:42 -08:00
Nikolay Kim
6c0fb3a7d2
handle panics in worker threads
2018-03-07 21:10:53 -08:00
Nikolay Kim
af8875f6ab
sleep on accept socket error
2018-03-07 15:52:05 -08:00