#[non_exhaustive]pub struct HttpPreHookCtx<'a> {
pub request: &'a Request,
pub http_request: &'a mut HttpRequest,
pub session: Option<&'a Session>,
pub proxy: Option<&'a ProxyInfo>,
}Expand description
State exposed immediately before an HTTP request is sent.
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 outgoing HTTP request.
http_request: &'a mut HttpRequestMutable outgoing HTTP request.
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 HttpPreHookCtx<'a>
impl<'a> !UnwindSafe for HttpPreHookCtx<'a>
impl<'a> Freeze for HttpPreHookCtx<'a>
impl<'a> Send for HttpPreHookCtx<'a>
impl<'a> Sync for HttpPreHookCtx<'a>
impl<'a> Unpin for HttpPreHookCtx<'a>
impl<'a> UnsafeUnpin for HttpPreHookCtx<'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