#http #websockets #tokio

tk-http

A full-features asynchronous HTTP implementation for tokio-rs stack, including websockets

20 releases

Uses old Rust 2015

0.3.9 Apr 14, 2018
0.3.8 Feb 13, 2018
0.3.6 Jan 9, 2018
0.3.5 Nov 30, 2017
0.2.0 Mar 30, 2017

#75 in WebSocket

Download history 14/week @ 2022-03-09 114/week @ 2022-03-16 50/week @ 2022-03-23 20/week @ 2022-03-30 20/week @ 2022-04-06 19/week @ 2022-04-13 18/week @ 2022-04-20 201/week @ 2022-04-27 145/week @ 2022-05-04 327/week @ 2022-05-11 99/week @ 2022-05-18 97/week @ 2022-05-25 194/week @ 2022-06-01 56/week @ 2022-06-08 19/week @ 2022-06-15 32/week @ 2022-06-22

303 downloads per month
Used in fewer than 9 crates

MIT/Apache

235KB
5K SLoC

Tk-HTTP

Status: Beta

Documentation | Github | Crate

A full-features asynchronous HTTP implementation for tokio-rs stack, including websockets.

Features:

  • HTTP 1.1 and 1.0 support (plans to support for HTTP/2 with same API)
  • Flexible configuration of pipelining both for client and server
  • Comprehensive configuration of timeouts both for client and server
  • Strict parsing of few selected headers which influence security
  • Other headers go unparsed to keep CPU usage low
  • Minimum copies of data: i.e. you can decode JSON directly from network buffer
  • Generic over transport (so can be used over TLS or unix sockets)

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~7MB
~151K SLoC