#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

#301 in WebSocket

Download history 2/week @ 2023-12-04 13/week @ 2023-12-11 15/week @ 2023-12-18 4/week @ 2023-12-25 16/week @ 2024-01-08 7/week @ 2024-01-15 4/week @ 2024-01-22 6/week @ 2024-02-05 13/week @ 2024-02-12 21/week @ 2024-02-19 32/week @ 2024-02-26 30/week @ 2024-03-04 25/week @ 2024-03-11 30/week @ 2024-03-18

118 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

~8.5MB
~167K SLoC