Commit graph

4305 commits

Author SHA1 Message Date
Nikolay Kim
772b939bb5 add socket disconnect notification 2021-03-26 16:13:23 +06:00
Nikolay Kim
c8870728b7 fix wrong api docs 2021-03-23 09:49:31 +06:00
Nikolay Kim
6c45b97a58 use service instead of fn for per request handler 2021-03-21 21:26:17 +06:00
Nikolay Kim
402cf91f8d add per request callback for http1 2021-03-18 13:47:01 +06:00
Nikolay Kim
cbdfca0758 * allow case-insensitive request matching on scope level, add method App::finish(), add .filter() method allows to register request filters 2021-03-16 16:14:24 +06:00
Nikolay Kim
aef8b800a2 use patterns for scopes prefix definitions 2021-03-16 11:40:46 +06:00
Nikolay Kim
c448c0beb0 Use IntoPattern for prefix resources 2021-03-16 10:39:12 +06:00
Nikolay Kim
5eaaca9b2f add buffer_params() api 2021-03-15 16:44:38 +06:00
Nikolay Kim
099d7d4bc9 update socket2 2021-03-15 16:10:10 +06:00
Nikolay Kim
295286d2b7 refactor framed api 2021-03-15 16:10:06 +06:00
Nikolay Kim
8b7f11c1e7 fix expect/continue support, wake up write task 2021-03-11 11:26:41 +06:00
Nikolay Kim
ed0fdce1dd fix rust 1.45 compat 2021-03-10 03:08:18 +06:00
Nikolay Kim
45f6f470eb Fix service error handling for h1 proto 2021-03-10 02:42:50 +06:00
Nikolay Kim
d32e86957f better ws client error handling 2021-03-06 20:33:10 +06:00
Nikolay Kim
23a9c75c61 Introduce WsConnection::start_default() method and added SinkService 2021-03-06 19:35:27 +06:00
Nikolay Kim
4f64577ae0 fix 1.45 compatibility 2021-03-04 21:47:59 +06:00
Nikolay Kim
fb03807642 write task could panic if receives more that 512 bytes during shutdown 2021-03-04 20:03:53 +06:00
Nikolay Kim
cbad4da5fc add high/low watermark for http/web read/write buffers 2021-03-04 17:58:39 +06:00
Nikolay Kim
36d4fff7fb add high/low watermark for framed read/write buffers 2021-03-04 17:33:08 +06:00
Nikolay Kim
18dde16165 better example 2021-03-02 23:14:53 +06:00
Nikolay Kim
6009d0f2b4 Allow to use async fn for server configuration 2021-03-02 21:57:23 +06:00
Nikolay Kim
eb2a956362 do not box openssl accept future 2021-02-28 19:20:09 +06:00
Nikolay Kim
78dd4e5fbd Set nodelay to accept/connect sockets 2021-02-28 10:06:08 +06:00
Nikolay Kim
d58c6c6311 upgrade cookie; disable some tests 2021-02-27 07:26:25 +06:00
Nikolay Kim
32bc0708cd Remove unneeded set_nonblocking() call from server accept loop 2021-02-27 06:06:35 +06:00
Nikolay Kim
8d29fac124 partial matches keep garbage in segments 2021-02-26 14:56:43 +06:00
Nikolay Kim
cfaa2cc3ca enable serde feature for bytestring 2021-02-24 16:29:22 +06:00
Nikolay Kim
d652ae92ca bump ver 2021-02-24 14:08:58 +06:00
Nikolay Kim
a707020171 fix rt_test macros 2021-02-24 14:07:58 +06:00
Nikolay Kim
055bd730d4 fix runtime macros 2021-02-24 13:58:41 +06:00
Nikolay Kim
2d8ce48456 use new time api 2021-02-24 13:48:33 +06:00
Nikolay Kim
819f5b2eaf Use main and test proc macro from ntex-macros 2021-02-24 13:25:22 +06:00
Nikolay Kim
0d9be13180 Re-export various types 2021-02-24 12:56:34 +06:00
Nikolay Kim
8f016592fd bump version 2021-02-24 04:52:49 +06:00
Nikolay Kim
8bd63b07b3 Make TestServer::connect() async 2021-02-24 04:50:49 +06:00
Nikolay Kim
8b059754a6 update deps 2021-02-24 00:22:12 +06:00
Nikolay Kim
e04ae7cc86
Migrate to tokio 1.0 (#41)
* migrate to tokio 1.x

* update tests
2021-02-24 00:12:44 +06:00
Nikolay Kim
ddd973b808 framed state tests 2021-02-22 18:33:47 +06:00
Nikolay Kim
10ddcb0d59 fix WBackPressureEnabled/Disabled handling 2021-02-22 17:08:23 +06:00
Nikolay Kim
92dacafe06 refactor framed dispatcher write back-pressure support 2021-02-22 16:51:38 +06:00
Nikolay Kim
e4483569b8 Fix http date header update task 2021-02-22 14:52:03 +06:00
Nikolay Kim
d97f328b64 prep release 2021-02-21 16:33:40 +06:00
Nikolay Kim
0604045d03 allow to access to inner type of Connect 2021-02-20 15:33:31 +06:00
Nikolay Kim
c8a229422f prep release 2021-02-20 13:14:13 +06:00
Nikolay Kim
e46cc3292a cleanups 2021-02-20 12:48:20 +06:00
Nikolay Kim
530ef33a5c refactor http Message and ResponseHead 2021-02-20 12:24:56 +06:00
Nikolay Kim
6709090fab Do not leak request/response pools 2021-02-20 11:59:49 +06:00
Nikolay Kim
b8c05e2409 Drop Either service 2021-02-20 11:22:16 +06:00
Nikolay Kim
fb061ddb88 Rename ServerBulder::system_exit to stop_runtime 2021-02-20 11:22:10 +06:00
Nikolay Kim
a1296fc059 cleanup framed write task 2021-02-20 10:40:14 +06:00