Commit Graph

130 Commits

Author SHA1 Message Date
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
Nikolay Kim 5ca904d1db make flate crate optional 2018-04-24 12:24:04 -07:00
Nikolay Kim 79818560b2 cleanup doc strings; prepare release 2018-04-16 09:30:59 -07:00
Nikolay Kim 58cc0dfbc5 Fix Client Request with custom Body Stream halting on certain size requests #176 2018-04-15 10:22:09 -07:00
Nikolay Kim 113f5ad1a8 add rustfmt config 2018-04-13 16:02:01 -07:00
Nikolay Kim 0b01884fca add timeouts stats to client connector 2018-04-12 13:08:13 -07:00
Jan Niehusmann 72bc1546c4 fix end-of-stream handling in parse_payload
parse_payload can be called with a pre-filled buf.

In this case, it's totaly fine for read_from_io to return
sync::Ready(0) while buf is not empty. This is not an
PayloadError::Incomplete.

So, move the check for PayloadError::Incomplete down to the
decoding code: If the decoder is not ready, but the input stream
is finished, PayloadError::Incomplete will be returned.
2018-04-12 09:47:32 +02:00
Nikolay Kim b517957761 fix stats for tls and alpn features 2018-04-11 16:34:01 -07:00
Nikolay Kim d18f9c5905 add clinet connector stats 2018-04-11 16:11:11 -07:00
Nikolay Kim bb11fb3d24 update client mod doc string 2018-04-09 21:57:40 -07:00
Nikolay Kim e757dc5a71 clippy warnings 2018-04-09 14:25:30 -07:00
Vincent Ambo 38063b9873 docs(client): Minor formatting and spelling fixes in module docs 2018-04-07 17:00:57 +02:00
Nikolay Kim 542315ce7f simplify StaticFiles 2018-04-06 19:34:55 -07:00
Nikolay Kim 2d4ee0ee01 make Pause::new public 2018-04-06 12:34:24 -07:00
Nikolay Kim 5bd5f67d79 add Pause message constructors 2018-04-06 12:31:31 -07:00
Nikolay Kim 8d5fa6ee71 added Pause/Resume for client connector 2018-04-06 11:08:41 -07:00
Nikolay Kim af0c8d893d add shortcut method for client requests 2018-04-06 10:09:31 -07:00