tower-http icon indicating copy to clipboard operation
tower-http copied to clipboard

HTTP specific Tower utilities.

Results 88 tower-http issues
Sort by recently updated
recently updated
newest added

## Motivation Currently compression and decompression of response bodies are supported with the `Compression` and `Decompression` services. Issue #276 proposes to also implement decompression for request bodies, this PR addresses...

## Feature Request There's some nice setup for a Client over in . Would you be amenable to a port into this repo as an example to make this approach...

E-help-wanted
E-medium
T-docs

## Feature Request ### Motivation Currently, when using Firefox for example, the encoding used by `CompressionLayer` is GZIP, which is unfortunate, considering that Brotli produces far smaller files and Firefox...

C-feature-request
E-help-wanted
E-medium

## Bug Report ### Version tower-http v0.2.4 ### Description `tower_http::trace::{Trace, TraceLayer}` both default most of their generic parameters. This is nice when I have to write out the actual type,...

C-enhancement
E-easy

## Motivation Previously `ServeDir`'s error type was `io::Error`. That means users using `ServeDir` with axum must use `.handle_error()` to convert any IO errors into responses: ```rust Router::new().nest( "/assets", get_service(ServeDir::new(".")).handle_error(handle_error), );...

## Feature Request ### Motivation We are using tower-http in our project and we allow users to configure CORS. If there is a mistake which we can't detect in the...

C-enhancement
E-help-wanted
E-medium

## Feature Request Add request decompression to the `Decompression` service. This would be used on the server-side to decompress client requests, in addition to the existing logic to decompress server...

A-new-middleware
C-feature-request
E-help-wanted
E-medium

This PR primarily adds a new HTTP gateway / reverse proxy middleware. It forwards the updated request to an underlying service so it should work with any appropriate transport such...

## Motivation This PR fixes case 6 of bug report #215. ## Solution `*` in the `Accept-Encoding` header means “all other encodings”, i.e. those not explicitly specified. I modified the...

Back in https://github.com/tower-rs/tower-http/pull/204 we fixed a directory traversal attack on Windows. Everything is safe now so no need to worry but it seems we forgot to add a test for...

C-enhancement
E-easy
E-help-wanted