pub struct TestRequest<'a, A: Application> { /* private fields */ }Expand description
A pending test request. Chain builder methods then call TestRequest::send.
Implementations§
Source§impl<'a, A: Application> TestRequest<'a, A>
impl<'a, A: Application> TestRequest<'a, A>
Sourcepub fn body_bytes(self, body: Vec<u8>) -> Self
pub fn body_bytes(self, body: Vec<u8>) -> Self
Set the request body to raw bytes.
Sourcepub fn send(self) -> TestResponse
pub fn send(self) -> TestResponse
Dispatch the request and return the response.
Auto Trait Implementations§
impl<'a, A> Freeze for TestRequest<'a, A>
impl<'a, A> RefUnwindSafe for TestRequest<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for TestRequest<'a, A>where
A: Sync,
impl<'a, A> Sync for TestRequest<'a, A>where
A: Sync,
impl<'a, A> Unpin for TestRequest<'a, A>
impl<'a, A> UnsafeUnpin for TestRequest<'a, A>
impl<'a, A> UnwindSafe for TestRequest<'a, A>where
A: RefUnwindSafe,
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