pub struct RequestOpts {
pub omit_auth: bool,
pub omit_version: bool,
pub raw_body: Option<Vec<u8>>,
pub extra_headers: Vec<(String, String)>,
}Expand description
Knobs that let a probe deviate from a well-formed request on purpose.
Fields§
§omit_auth: bool§omit_version: bool§raw_body: Option<Vec<u8>>Replaces the serialised body verbatim — used to send malformed JSON.
extra_headers: Vec<(String, String)>Trait Implementations§
Source§impl Clone for RequestOpts
impl Clone for RequestOpts
Source§fn clone(&self) -> RequestOpts
fn clone(&self) -> RequestOpts
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 RequestOpts
impl Debug for RequestOpts
Source§impl Default for RequestOpts
impl Default for RequestOpts
Source§fn default() -> RequestOpts
fn default() -> RequestOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestOpts
impl RefUnwindSafe for RequestOpts
impl Send for RequestOpts
impl Sync for RequestOpts
impl Unpin for RequestOpts
impl UnsafeUnpin for RequestOpts
impl UnwindSafe for RequestOpts
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