#client-server #http #networking #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

#332 in WebSocket

Download history 69/week @ 2024-04-01 18/week @ 2024-04-08 23/week @ 2024-04-15 24/week @ 2024-04-22 23/week @ 2024-04-29 12/week @ 2024-05-06 33/week @ 2024-05-13 14/week @ 2024-05-20 33/week @ 2024-05-27 22/week @ 2024-06-03 20/week @ 2024-06-10 21/week @ 2024-06-17 21/week @ 2024-06-24 35/week @ 2024-07-08 33/week @ 2024-07-15

91 downloads per month
Used in 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

~8MB
~154K SLoC