pub struct Request {
pub query: HashMap<String, String>,
pub urlbody: HashMap<String, String>,
pub auth: Option<String>,
}Expand description
Open and simple implementation of WebRequest.
Fields§
§query: HashMap<String, String>The key-value pairs in the url query component.
urlbody: HashMap<String, String>The key-value pairs of a x-www-form-urlencoded body.
auth: Option<String>Provided authorization header.
Trait Implementations§
Source§impl WebRequest for Request
impl WebRequest for Request
Source§fn query(
&mut self,
) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
fn query( &mut self, ) -> Result<Cow<'_, dyn QueryParameter + 'static>, Self::Error>
Retrieve a parsed version of the url query. Read more
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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