1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Better Tower layers

This commit is contained in:
Quentin Gliech
2022-08-12 14:54:43 +02:00
parent 244aa1d0ac
commit 398379e21b
8 changed files with 311 additions and 58 deletions

View File

@@ -50,7 +50,10 @@ mod layers;
pub use self::{
ext::{set_propagator, CorsLayerExt, ServiceExt as HttpServiceExt},
future_service::FutureService,
layers::{client::ClientLayer, json::JsonResponseLayer, otel, server::ServerLayer},
layers::{
body_to_bytes::BodyToBytesLayer, client::ClientLayer, json_request::JsonRequestLayer,
json_response::JsonResponseLayer, otel, server::ServerLayer,
},
};
pub(crate) type BoxError = Box<dyn std::error::Error + Send + Sync>;