pub struct Http;
Expand description
Provides functions for doing http network request
Implementations§
source§impl Http
impl Http
sourcepub async fn fetch_text(url: &str) -> Result<String, TypeError>
pub async fn fetch_text(url: &str) -> Result<String, TypeError>
fetch text document from the url and decode the result with the supplied
sourcepub async fn fetch_with_request_init(
url: &str,
request_init: Option<RequestInit>
) -> Result<Response, TypeError>
pub async fn fetch_with_request_init( url: &str, request_init: Option<RequestInit> ) -> Result<Response, TypeError>
API for fetching http rest request
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Http
impl RefUnwindSafe for Http
impl Send for Http
impl Sync for Http
impl Unpin for Http
impl UnwindSafe for Http
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