David Pedersen e84cc6f7f8
Tonic example (#72)
* Tonic example

* Add test for tonic example

* Address review feedback

* Use `impl Trait` for returning the service type
2021-03-21 17:43:25 +01:00
2021-03-21 17:43:25 +01:00
2018-01-22 13:29:51 -08:00
2021-03-21 17:43:25 +01:00
2021-02-25 22:21:24 +01:00
2019-03-04 12:07:22 -08:00
2021-02-24 14:39:37 -08:00

Tower HTTP

Tower middlewares and utilities for HTTP clients and servers

Build status

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

This library is not production ready. Do not try to use it in a production environment or you will regret it! This crate is still under active development and there has not yet been any focus on documentation (because you shouldn't be using it yet!).

Middlewares

These are the middlewares included in this crate:

  • AddExtension: Stick some shareable value in request extensions.
  • Compression: Compression response bodies.
  • Decompression: Decompress response bodies.
  • MapRequestBody: Apply a transformation to the request body.
  • MapResponseBody: Apply a transformation to the response body.
  • PropagateHeader: Propagate a header from the request to the response.
  • SensitiveHeader: Marks a given header as sensitive so it wont show up in logs.
  • SetRequestHeader: Set a header on the request.
  • SetResponseHeader: Set a header on the response.
  • SetSensitiveRequestHeader: Marks a given request header as sensitive.
  • SetSensitiveResponseHeader: Marks a given response header as sensitive.

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

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

All middlewares are disabled by default and can be enabled using a cargo feature. The feature full turns on everything.

Description
HTTP specific Tower utilities.
Readme 5.7 MiB
Languages
Rust 100%