1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-25 08:22:43 +01:00
Commit Graph

246 Commits

Author SHA1 Message Date
Nikolay Kim
537144f0b9 add http client connector service 2018-11-11 23:12:54 -08:00
Nikolay Kim
c2540cc59b clippy warnings 2018-10-29 16:39:46 -07:00
Nikolay Kim
09c94cb06b add client http codec; websockets client 2018-10-22 18:18:05 -07:00
Nikolay Kim
6aa2de7b8d remove actix-web artifacts 2018-10-04 17:00:27 -07:00
Nikolay Kim
ae5c4dfb78 refactor http channels list; rename WorkerSettings 2018-10-02 15:25:32 -07:00
Nikolay Kim
f007860a16 cleanup warnings 2018-10-01 22:48:11 -07:00
Nikolay Kim
c674ea9126 add StreamConfiguration service 2018-10-01 22:23:02 -07:00
Nikolay Kim
127af92541 clippy warnings 2018-10-01 21:16:56 -07:00
Nikolay Kim
2217a152cb expose app error by http service 2018-10-01 15:19:49 -07:00
Nikolay Kim
5966ee6192 add HttpServer::register() function, allows to register services in actix net server 2018-09-28 16:03:53 -07:00
Nikolay Kim
4aac3d6a92 refactor keep-alive timer 2018-09-28 15:04:59 -07:00
Nikolay Kim
e95babf8d3 log acctor init errors 2018-09-28 12:37:20 -07:00
Nikolay Kim
f2d42e5e77 refactor acceptor error handling 2018-09-28 11:50:47 -07:00
Nikolay Kim
0f1c80ccc6 deprecate start_incoming 2018-09-28 08:45:49 -07:00
Nikolay Kim
4b59ae2476 fix ssl config for client connector 2018-09-27 22:15:38 -07:00
Maciej Piechotka
003b05b095 Don't ignore errors in std::fmt::Debug implementations (#506) 2018-09-11 14:57:55 +03:00
Nikolay Kim
002bb24b26 unhide SessionBackend and SessionImpl traits and cleanup warnings 2018-09-07 20:46:43 -07:00
Nikolay Kim
f0f67072ae Read client response until eof if connection header set to close #464 2018-09-03 21:35:59 -07:00
Markus Unterwaditzer
3439f55288 doc: Add example for using custom nativetls connector (#497) 2018-09-01 18:13:52 +03:00
Nikolay Kim
a2b170fec9 fmt 2018-08-31 18:56:21 -07:00
Robert G. Jakabosky
66881d7dd1 If buffer is empty, read more data before calling parser. 2018-09-01 02:25:05 +08:00
Robert G. Jakabosky
a42a8a2321 Add some comments to clarify logic. 2018-09-01 02:15:36 +08:00
Robert G. Jakabosky
2341656173 Simplify buffer reading logic. Remove duplicate code. 2018-09-01 01:41:38 +08:00
Robert Gabriel Jakabosky
af6caa92c8
Merge branch 'master' into master 2018-09-01 00:17:34 +08:00
Robert G. Jakabosky
3ccbce6bc8 Fix issue with 'Connection: close' in ClientRequest 2018-09-01 00:08:53 +08:00
Markus Unterwaditzer
4bab50c861 Add ability to pass a custom TlsConnector (#491) 2018-08-29 20:53:31 +02:00
Robert G. Jakabosky
c3ae9997fc Fix bug with http1 client disconnects. 2018-08-26 22:21:05 +08:00
Nikolay Kim
8dfc34e785 fix tokio-tls IoStream impl 2018-08-23 10:27:32 -07:00
Nikolay Kim
810995ade0 fix tokio-tls dependency #480 2018-08-23 10:10:13 -07:00
Nikolay Kim
1716380f08 clippy fmt 2018-08-23 09:48:01 -07:00
Kornel
bdc9a8bb07 Optionally support tokio-uds's UnixStream as IoStream (#472) 2018-08-17 19:04:15 +03:00
Douman
9c80d3aa77
Write non-80 port in HOST of client's request (#451) 2018-08-07 10:01:29 +03:00
Jan Michael Auer
e61ef7dee4 Use zlib instead of deflate for content encoding (#442) 2018-08-03 14:56:26 +02:00
Nikolay Kim
0da3fdcb09 do not use Arc for rustls config 2018-08-01 10:59:00 -07:00
Nikolay Kim
4dba531bf9 do not override HOST header for client request #428 2018-07-31 08:51:24 -07:00
Nikolay Kim
2072c933ba handle error during request creation 2018-07-30 15:04:52 -07:00
Marat Safin
196da6d570 add rustls 2018-07-30 08:21:12 +03:00
Nikolay Kim
b878613e10 fix warning 2018-07-24 15:49:46 -07:00
Nikolay Kim
85b275bb2b fix warnings 2018-07-24 15:09:30 -07:00
Nikolay Kim
2043bb5ece do not reallocate waiters 2018-07-20 10:20:41 -07:00
Nikolay Kim
85672d1379 fix client connector wait queue 2018-07-18 01:23:56 +06:00
Nikolay Kim
373f2e5028 add release stat 2018-07-17 17:38:16 +06:00
Nikolay Kim
d43902ee7c proper handling for client connection release 2018-07-17 17:23:03 +06:00
Nikolay Kim
1af5aa3a3e calculate client request timeout 2018-07-17 02:30:21 +06:00
Nikolay Kim
bccd7c7671 add wait queue size stat to client connector 2018-07-17 01:57:57 +06:00
kingoflolz
d9988f3ab6
fix missing content length
fix missing content length when no compression is used
2018-07-11 21:21:32 +10:00
Nikolay Kim
cfa470db50 close conneciton for head requests 2018-07-06 09:21:24 +06:00
Nikolay Kim
a5f7a67b4d clippy warnings 2018-07-06 08:24:44 +06:00
Nikolay Kim
9070d59ea8 do not read head payload 2018-07-06 08:11:36 +06:00
Douman
67e4cad281
Introduce method to set header if it is missing only (#364)
Also let default headers use it.

Closes #320
2018-07-05 19:27:18 +03:00
Nikolay Kim
8058d15624 clippy warnings 2018-07-05 13:16:16 +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
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
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
348491b18c fix alpn connector 2018-06-23 17:59:45 +06:00
Nikolay Kim
cf38183dcb refactor client connector waiters maintenance 2018-06-23 12:40:21 +06:00
Nikolay Kim
e3dc6f0ca8 refactor h1decoder 2018-06-23 12:28:55 +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
58d1f4a4aa switch to actix master 2018-06-21 13:34:36 +06:00
Nikolay Kim
1be27e17f8 convert timer error to io error 2018-06-21 10:05:20 +06:00
Nikolay Kim
8b0fbb85d1 SendRequest execution fails with the entered unreachable code #329 2018-06-21 09:52:18 +06:00
Nikolay Kim
cafde76361
Merge branch 'master' into remove-use-of-unsafe-from-pipeline-poll 2018-06-19 19:20:25 +06:00
Nikolay Kim
bfb93cae66
Update connector.rs 2018-06-19 19:19:31 +06:00
Konrad Borowski
877e177b60 Remove use of unsafe from Pipeline#poll 2018-06-19 13:42:44 +02:00
Nikolay Kim
5c42b0902f better doc api examples 2018-06-19 12:07:07 +06:00
Nikolay Kim
247e8727cb ClientBody is not needed 2018-06-19 10:15:16 +06:00
Nikolay Kim
362b14c2f7 remove unsafe cell from ws client 2018-06-19 09:36:17 +06:00
Nikolay Kim
70244c29e0 update doc api examples 2018-06-17 04:09:07 +06:00
Ozgur Akkurt
d4d3add17d add ClientRequestBuilder::form() 2018-06-12 19:30:00 +03:00
Nikolay Kim
9dd66dfc22 better name for error 2018-06-10 10:24:34 -07:00
Nikolay Kim
87a822e093 fix deprecated warnings 2018-06-10 10:14:13 -07:00
Nikolay Kim
818d0bc187 new StreamHandler impl 2018-06-09 07:53:46 -07:00
Nikolay Kim
9151d61eda allow to use custom resolver for ClientConnector 2018-06-08 16:33:57 -07:00
François Mockers
ca3fb11f8b add actix-web version in header 2018-06-04 08:15:04 +02:00
François Mockers
86be54df71 add default value for header User-Agent in requests 2018-06-03 15:48:00 +02: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
8452c7a044 fix doc api example 2018-06-01 11:22:40 -07:00
Nikolay Kim
3f5a39a5b7 cargo fmt 2018-06-01 09:37:14 -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
77becb9bc0 fix doc string 2018-05-29 18:48:39 -07:00
Nikolay Kim
dde266b9ef fix doc string 2018-05-29 18:31:39 -07: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
ecd05662c0 use new actix system api 2018-05-29 10:31:37 -07:00
Nikolay Kim
fb582a6bca fix connector 2018-05-27 05:18:37 -07:00
Nikolay Kim
be2ceb7c66 update actix Addr; make ClientConnector thread safe 2018-05-27 05:02:49 -07:00
Nikolay Kim
255cd4917d fix doc test 2018-05-24 22:04:14 -07:00
Nikolay Kim
690169db89 migrate to tokio 2018-05-24 21:03:16 -07:00
Nikolay Kim
45e9aaa462 rustfmt 0.7 2018-05-17 12:20:20 -07:00
Nikolay Kim
92f993e054 Fix client request timeout handling 2018-05-10 09:37:38 -07:00
Nikolay Kim
b3cc43bb9b Fix connector's default keep-alive and lifetime settings #212 2018-05-08 13:41:04 -07:00
Nikolay Kim
ecda97aadd update doc string 2018-05-08 05:54:06 -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