pub struct HttpActionSpec {
pub method: String,
pub url: String,
pub content_type: String,
pub body_fields: HashMap<String, String>,
pub cookies: HashMap<String, String>,
}Expand description
An HTTP action that can be executed without a browser.
Fields§
§method: StringHTTP method (GET, POST, PUT, DELETE).
url: StringFull URL to send the request to.
content_type: StringContent-Type header.
body_fields: HashMap<String, String>Form fields or JSON body template.
Session cookies to include.
Trait Implementations§
Source§impl Clone for HttpActionSpec
impl Clone for HttpActionSpec
Source§fn clone(&self) -> HttpActionSpec
fn clone(&self) -> HttpActionSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HttpActionSpec
impl RefUnwindSafe for HttpActionSpec
impl Send for HttpActionSpec
impl Sync for HttpActionSpec
impl Unpin for HttpActionSpec
impl UnsafeUnpin for HttpActionSpec
impl UnwindSafe for HttpActionSpec
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