12 unstable releases (3 breaking)
|0.3.4||Jun 6, 2022|
|0.3.2||Apr 29, 2022|
|0.2.5||Mar 11, 2022|
|0.0.0||Mar 10, 2017|
#18 in Network programming
759,992 downloads per month
Used in 380 crates (94 directly)
Tower middleware and utilities for HTTP clients and servers.
More information about this crate can be found in the crate documentation.
Tower HTTP contains lots of middleware that are generally useful when building HTTP servers and clients. Some of the highlights are:
Traceadds high level logging of requests and responses. Supports both regular HTTP requests as well as gRPC.
Decompressionto compress/decompress response bodies.
FollowRedirectto automatically follow redirection responses.
See the docs for the complete list of middleware.
The middleware were originally extracted from one of @EmbarkStudios internal projects.
The examples folder contains various examples of how to use Tower HTTP:
- warp-key-value-store: A key/value store with an HTTP API built with warp.
- tonic-key-value-store: A key/value store with a gRPC API and client built with tonic.
- axum-key-value-store: A key/value store with an HTTP API built with axum.
Minimum supported Rust version
tower-http's MSRV is 1.51.
If you're new to tower its guides might help. In the tower-http repo we also
have a number of examples showing how to put everything together.
You're also welcome to ask in the
#tower Discord channel or open an
issue with your question.
🎈 Thanks for your help improving the project! We are so happy to have you! We have a contributing guide to help you get involved in the Tower HTTP project.
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tower HTTP by you, shall be licensed as MIT, without any additional terms or conditions.