pub struct Http;Expand description
Http
Implementations§
Source§impl Http
impl Http
pub const MAX_RESPONSE_BYTES: u64 = 200_000u64
pub async fn get<T: DeserializeOwned>( url: &str, headers: impl AsRef<[(&str, &str)]>, ) -> Result<T, Error>
pub async fn get_with_label<T: DeserializeOwned>( url: &str, headers: impl AsRef<[(&str, &str)]>, label: Option<&str>, ) -> Result<T, Error>
pub async fn get_raw(args: HttpRequestArgs) -> Result<HttpRequestResult, Error>
pub async fn get_raw_with_label( args: HttpRequestArgs, label: Option<&str>, ) -> Result<HttpRequestResult, Error>
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more