pub struct StealthOptions {
pub capture_url_pattern: Option<String>,
pub streaming: bool,
}Expand description
Options controlling the injected stealth + capture payload.
Fields§
§capture_url_pattern: Option<String>When set, responses whose request URL matches this JS regex source are
captured into CAPTURE_GLOBAL. When None, only stealth is applied.
streaming: boolWhen true, matching responses are captured incrementally by teeing
their ReadableStream (for SSE / streamed bodies). When false, the
full response body is captured once it resolves.
Implementations§
Source§impl StealthOptions
impl StealthOptions
Sourcepub const fn stealth_only() -> Self
pub const fn stealth_only() -> Self
Stealth only — no network capture.
Sourcepub fn capture(pattern: impl Into<String>) -> Self
pub fn capture(pattern: impl Into<String>) -> Self
Capture full (non-streamed) response bodies matching pattern.
Sourcepub fn capture_stream(pattern: impl Into<String>) -> Self
pub fn capture_stream(pattern: impl Into<String>) -> Self
Capture streamed (SSE) response bodies matching pattern incrementally.
Trait Implementations§
Source§impl Clone for StealthOptions
impl Clone for StealthOptions
Source§fn clone(&self) -> StealthOptions
fn clone(&self) -> StealthOptions
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 moreSource§impl Debug for StealthOptions
impl Debug for StealthOptions
Source§impl Default for StealthOptions
impl Default for StealthOptions
Source§fn default() -> StealthOptions
fn default() -> StealthOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StealthOptions
impl RefUnwindSafe for StealthOptions
impl Send for StealthOptions
impl Sync for StealthOptions
impl Unpin for StealthOptions
impl UnsafeUnpin for StealthOptions
impl UnwindSafe for StealthOptions
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