pub struct Request<'a> { /* private fields */ }
Expand description
The struct represents the HTTP request.
Implementations§
Source§impl<'a> Request<'a>
impl<'a> Request<'a>
pub fn new( handle: RefMut<'a, Easy>, method: Method, url: &str, ) -> Result<Request<'a>>
Sourcepub fn with_user_agent(self, ua: &str) -> Result<Request<'a>>
pub fn with_user_agent(self, ua: &str) -> Result<Request<'a>>
Set custom User-Agent.
Sourcepub fn with_arguments(self, args: &str) -> Result<Request<'a>>
pub fn with_arguments(self, args: &str) -> Result<Request<'a>>
Set custom url arguments or querystring.
Auto Trait Implementations§
impl<'a> Freeze for Request<'a>
impl<'a> !RefUnwindSafe for Request<'a>
impl<'a> !Send for Request<'a>
impl<'a> !Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> !UnwindSafe for Request<'a>
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