pub struct RequestSpec {
pub host: String,
pub method: HttpMethod,
pub body: Option<Body>,
pub template_path: Option<PathBuf>,
pub response_template_path: Option<PathBuf>,
pub headers: Vec<(String, SensitiveString)>,
}Expand description
All request-level parameters for a run.
Fields§
§host: String§method: HttpMethod§body: Option<Body>§template_path: Option<PathBuf>§response_template_path: Option<PathBuf>§headers: Vec<(String, SensitiveString)>Custom HTTP headers to send with every request in this run.
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