pub struct Http<'a> { /* private fields */ }Expand description
HTTP entry point, created via ctx.http().
Implementations§
Source§impl<'a> Http<'a>
impl<'a> Http<'a>
pub fn get(&self, url: impl Into<String>) -> Request<'a>
pub fn post(&self, url: impl Into<String>) -> Request<'a>
pub fn put(&self, url: impl Into<String>) -> Request<'a>
pub fn patch(&self, url: impl Into<String>) -> Request<'a>
pub fn delete(&self, url: impl Into<String>) -> Request<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Http<'a>
impl<'a> !Send for Http<'a>
impl<'a> !Sync for Http<'a>
impl<'a> !UnwindSafe for Http<'a>
impl<'a> Freeze for Http<'a>
impl<'a> Unpin for Http<'a>
impl<'a> UnsafeUnpin for Http<'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