mirror of
https://github.com/tower-rs/tower.git
synced 2025-12-31 22:01:16 +00:00
* feat: Make new functions const when possible The main reason was to allow to initialize the RateLimitLayer in a const context. So why not making ever new function const (wherever it's possible). :P * Change the assert to use an MSRV-compatible function. --------- Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
Tower Layer
Decorates a Tower Service, transforming either the request or the response.
Overview
Often, many of the pieces needed for writing network applications can be
reused across multiple services. The Layer trait can be used to write
reusable components that can be applied to very different kinds of services;
for example, it can be applied to services operating on different protocols,
and to both the client and server side of a network transaction.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tower by you, shall be licensed as MIT, without any additional terms or conditions.