Implement middleware function

This commit is contained in:
Martin Algesten
2021-12-20 10:21:19 +01:00
parent 7b2f28bbc2
commit 09ecb6ffd6
5 changed files with 290 additions and 10 deletions

View File

@@ -327,6 +327,7 @@ mod agent;
mod body;
mod error;
mod header;
mod middleware;
mod pool;
mod proxy;
mod request;
@@ -392,6 +393,7 @@ pub use crate::agent::AgentBuilder;
pub use crate::agent::RedirectAuthHeaders;
pub use crate::error::{Error, ErrorKind, OrAnyStatus, Transport};
pub use crate::header::Header;
pub use crate::middleware::{Middleware, MiddlewareNext};
pub use crate::proxy::Proxy;
pub use crate::request::{Request, RequestUrl};
pub use crate::resolve::Resolver;