pub struct Request {
pub method: String,
pub target: String,
pub headers: Vec<(String, String)>,
pub body: String,
}Available on crate feature
fake only.Expand description
One request the server was sent.
Fields§
§method: StringGET, POST.
target: StringIts path and query.
headers: Vec<(String, String)>Its headers, names in lower case.
body: StringIts body, as text.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Request
impl Freeze for Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Requestwhere
RawVecInner: Send,
impl Sync for Requestwhere
RawVecInner: Sync,
impl Unpin for Request
impl UnsafeUnpin for Requestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for Requestwhere
RawVecInner: UnwindSafe,
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