Git Product home page Git Product logo

tower-http's Introduction

Tower HTTP

Tower middleware and utilities for HTTP clients and servers.

Build status Crates.io Documentation Crates.io

More information about this crate can be found in the crate documentation.

Middleware

Tower HTTP contains lots of middleware that are generally useful when building HTTP servers and clients. Some of the highlights are:

  • Trace adds high level logging of requests and responses. Supports both regular HTTP requests as well as gRPC.
  • Compression and Decompression to compress/decompress response bodies.
  • FollowRedirect to automatically follow redirection responses.

See the docs for the complete list of middleware.

Middleware uses the http crate as the HTTP interface so they're compatible with any library or framework that also uses http. For example hyper.

The middleware were originally extracted from one of @EmbarkStudios internal projects.

Examples

The examples folder contains various examples of how to use Tower HTTP:

Minimum supported Rust version

tower-http's MSRV is 1.51.

Getting Help

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.

Contributing

๐ŸŽˆ 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.

License

This project is licensed under the MIT license.

Contribution

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.

tower-http's People

Contributors

c5soft avatar carllerche avatar davidpdrsn avatar georgehahn avatar hannobraun avatar hntd187 avatar jplatte avatar kazk avatar kevinji avatar kylewlacy avatar luciofranco avatar madoshakalaka avatar marcusgrass avatar markdingram avatar mdickopp avatar moumar avatar nehliin avatar neoeinstein avatar neolegends avatar nightkr avatar programatik29 avatar ranile avatar repi avatar sandhose avatar seanmonstar avatar shepmaster avatar tesaguri avatar ttys3 avatar wolthom avatar zenria avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.