pub struct HttpMiddlewareContext {
pub request_id: Option<String>,
pub url: String,
pub method: String,
pub attempt: u32,
pub metadata: Arc<RwLock<HashMap<String, String>>>,
}Expand description
Context for HTTP middleware execution.
Fields§
§request_id: Option<String>Request ID for correlation
url: StringURL being requested
method: StringHTTP method
attempt: u32Attempt number (for retry middleware)
metadata: Arc<RwLock<HashMap<String, String>>>Custom metadata
Implementations§
Trait Implementations§
Source§impl Clone for HttpMiddlewareContext
impl Clone for HttpMiddlewareContext
Source§fn clone(&self) -> HttpMiddlewareContext
fn clone(&self) -> HttpMiddlewareContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HttpMiddlewareContext
impl !UnwindSafe for HttpMiddlewareContext
impl Freeze for HttpMiddlewareContext
impl Send for HttpMiddlewareContext
impl Sync for HttpMiddlewareContext
impl Unpin for HttpMiddlewareContext
impl UnsafeUnpin for HttpMiddlewareContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more