Commit Graph

137 Commits

Author SHA1 Message Date
Nikolay Kim bc6e62349c update deps; export api 2018-10-23 21:44:20 -07:00
Nikolay Kim 4260692034 add DefaultClient type alias 2018-10-22 18:52:40 -07:00
Nikolay Kim 09c94cb06b add client http codec; websockets client 2018-10-22 18:18:05 -07:00
Nikolay Kim 9b94eaa6a8 ws services 2018-10-22 09:59:20 -07:00
Nikolay Kim 47b47af01a refactor ws codec 2018-10-10 13:20:00 -07:00
Nikolay Kim c0699a070e add TakeRequest service; update ws test case 2018-10-05 15:40:56 -07:00
Nikolay Kim 7e135b798b add websocket transport and test 2018-10-05 14:30:40 -07:00
Nikolay Kim 5c0a2066cc refactor ws to a websocket codec 2018-10-05 12:47:22 -07:00
Nikolay Kim 8c2244dd88 rename HttpResponse 2018-10-05 11:04:59 -07:00
Nikolay Kim d53f3d7187 re-enable websockets 2018-10-05 10:20:49 -07:00
Nikolay Kim c24a8f4c2d remove high level apis 2018-10-05 07:02:09 -07:00
Nikolay Kim 127af92541 clippy warnings 2018-10-01 21:16:56 -07:00
Nikolay Kim 1716380f08 clippy fmt 2018-08-23 09:48:01 -07:00
Tobias Bieniek 0925a7691a ws/context: Increase `write()` visibility to public ()
This type is introduced to avoid confusion between the `.binary()` and `.write_raw()` methods on WebSocket contexts
2018-07-19 20:04:13 +03:00
Nikolay Kim 6b10e1eff6 rename PayloadHelper 2018-07-18 10:01:28 +06:00
Nikolay Kim db005af1af clippy warnings 2018-07-12 10:41:49 +06:00
Diggory Blake 87824a9cf6 Refactor `apply_mask` implementation, removing dead code paths and reducing scope of unsafety 2018-07-08 13:56:43 +01:00
Nikolay Kim 5b7aed101a remove unsafe 2018-07-06 13:54:43 +06:00
Nikolay Kim 1c3b32169e remove stream from WebsocketsContext::with_factory 2018-07-06 12:11:40 +06:00
Nikolay Kim 7d96b92aa3 add check for usize cast 2018-07-06 07:46:47 +06:00
Nikolay Kim 6fd686ef98 cleanup warnings 2018-07-04 21:01:27 +06:00
Nikolay Kim 4c5a63965e use new actix context api 2018-07-04 17:04:23 +06:00
Nikolay Kim fec6047ddc refactor HttpRequest mutability 2018-07-02 23:35:32 +06:00
Nikolay Kim ff0ab733e4 remove unsafe from mask 2018-06-23 11:51:02 +06:00
Nikolay Kim d1318a35a0 remove unnecessary unsafes 2018-06-23 10:29:23 +06:00
Nikolay Kim b5594ae2a5
Fix doc api example 2018-06-21 14:11:00 +06:00
Nikolay Kim cfe6725eb4 Allow to disable masking for websockets client 2018-06-21 09:49:33 +06:00
Nikolay Kim 2f917f3700 various cleanups and comments 2018-06-20 01:27:41 +06:00
Konrad Borowski e884e7e84e Remove some uses of unsafe from Frame::message 2018-06-19 14:11:53 +02: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 0f2aac1a27 remove unneed Send and Sync 2018-06-17 08:32:22 +06:00
Nikolay Kim 33050f55a3 remove Context::actor() method 2018-06-17 03:10:44 +06:00
Kaz Wesley 48f77578ea fix url in example 2018-06-11 21:55:05 -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 154cd3c5de better actix mod re-exports 2018-06-01 09:36:16 -07:00
Douman 80965d7a9a
Re-export actix dependency. Closes ()
- 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 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 45e9aaa462 rustfmt 0.7 2018-05-17 12:20:20 -07:00
Nikolay Kim b748bf3b0d make api public 2018-05-09 06:05:16 -07:00
Nikolay Kim be12d5e6fc make WsWriter trait optional 2018-05-09 05:48:06 -07:00
Nikolay Kim a817ddb57b add variable segments support for scope prefix 2018-05-07 13:50:43 -07:00
Alexander Andreev 599fd6af93 fix formatting 2018-05-07 20:53:45 +03:00
Alexander Andreev cd11293c1f spelling check 2018-05-06 19:07:30 +03:00
Denis Kolodin 80f385e703 Add WsWriter trait
`WsWriter` trait is a common interface for writing to a websocket and
it's implemented for both: `WebScoketContext` and `ClientWriter`.
2018-05-02 08:35:50 +03: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