#[non_exhaustive]pub struct HttpPostHookCtx<'a> {
pub request: &'a Request,
pub response: &'a HttpResponse,
pub session: Option<&'a Session>,
pub proxy: Option<&'a ProxyInfo>,
}Expand description
State exposed after an HTTP response is received.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.request: &'a RequestCrawl request that produced the response.
response: &'a HttpResponseReceived HTTP response.
session: Option<&'a Session>Session selected for this attempt, if enabled.
proxy: Option<&'a ProxyInfo>Proxy selected for this attempt, if any.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for HttpPostHookCtx<'a>
impl<'a> !UnwindSafe for HttpPostHookCtx<'a>
impl<'a> Freeze for HttpPostHookCtx<'a>
impl<'a> Send for HttpPostHookCtx<'a>
impl<'a> Sync for HttpPostHookCtx<'a>
impl<'a> Unpin for HttpPostHookCtx<'a>
impl<'a> UnsafeUnpin for HttpPostHookCtx<'a>
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