pub enum RequestSpec {
Single {
host: String,
method: HttpMethod,
body: Option<Body>,
template_path: Option<PathBuf>,
response_template_path: Option<PathBuf>,
headers: Vec<(String, SensitiveString)>,
},
Scenarios(Vec<ResolvedScenario>),
}Expand description
All request-level parameters for a run.
Variants§
Single
Single-endpoint mode — all VUs hit the same host/method.
Fields
§
method: HttpMethod§
headers: Vec<(String, SensitiveString)>Custom HTTP headers to send with every request in this run.
Scenarios(Vec<ResolvedScenario>)
Scenario mode — VUs execute multi-step sequences.
Auto Trait Implementations§
impl Freeze for RequestSpec
impl !RefUnwindSafe for RequestSpec
impl Send for RequestSpec
impl Sync for RequestSpec
impl Unpin for RequestSpec
impl UnsafeUnpin for RequestSpec
impl !UnwindSafe for RequestSpec
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