#http2 #tower-http #protocols

proto-tower-http-2

Tower implementation of the HTTP/2 protocol

2 releases

0.1.6 Feb 18, 2025
0.1.5 Jan 28, 2025

#9 in #tower-http

Download history 81/week @ 2025-01-25 31/week @ 2025-02-01 3/week @ 2025-02-08 101/week @ 2025-02-15 18/week @ 2025-02-22 6/week @ 2025-03-01

88 downloads per month
Used in proto-tower

GPL-3.0-only

36KB
837 lines

Proto-http-2

H2 is the HTTP/2 protocol over TLS. This is the most common way to use HTTP/2.

H2C is the HTTP/2 protocol without the TLS layer. This is useful for when you want to use HTTP/2 but don't want to deal with the complexity of TLS.

The TLS layer can be injected separately. This crate handles the HTTP/2 protocol with or without TLS.

https://www.rfc-editor.org/rfc/rfc7540

Adding dependency to project

[dependencies]
proto-http-2 = { git = "https://github.com/rapidrecast/proto-tower.git", subdir = "proto-http-2" }

Notes

If you are upgrading to http 2 from http 1, you should NOT do that if the upgrade protocol is h2c.

From the RFC:

Dependencies

~4–9.5MB
~83K SLoC