pub struct TeaRequest<'a>(/* private fields */);Expand description
§Use this struct to construct your request
TeaRequest::get("/api/something")
.invoke()
.await? // web_sys::ResponseImplementations§
Source§impl<'a> TeaRequest<'a>
impl<'a> TeaRequest<'a>
pub fn get(url: &'a str) -> TeaBuilder<'_>
pub fn head(url: &'a str) -> TeaBuilder<'_>
pub fn post(url: &'a str) -> TeaBuilder<'_>
pub fn put(url: &'a str) -> TeaBuilder<'_>
pub fn delete(url: &'a str) -> TeaBuilder<'_>
pub fn connect(url: &'a str) -> TeaBuilder<'_>
pub fn options(url: &'a str) -> TeaBuilder<'_>
pub fn trace(url: &'a str) -> TeaBuilder<'_>
pub fn patch(url: &'a str) -> TeaBuilder<'_>
Trait Implementations§
Source§impl<'a> Clone for TeaRequest<'a>
impl<'a> Clone for TeaRequest<'a>
Source§fn clone(&self) -> TeaRequest<'a>
fn clone(&self) -> TeaRequest<'a>
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<'a> Freeze for TeaRequest<'a>
impl<'a> RefUnwindSafe for TeaRequest<'a>
impl<'a> Send for TeaRequest<'a>
impl<'a> Sync for TeaRequest<'a>
impl<'a> Unpin for TeaRequest<'a>
impl<'a> UnwindSafe for TeaRequest<'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