pub struct ICHttpClient {
pub max_response_bytes: u64,
pub cycles: u64,
}Fields§
§max_response_bytes: u64§cycles: u64Implementations§
Source§impl ICHttpClient
impl ICHttpClient
pub fn new(max_resp: Option<u64>, default_cycles: Option<u64>) -> Self
pub fn set_max_response_bytes(&mut self, v: u64)
pub fn set_cycles_per_call(&mut self, v: u64)
pub async fn get( &self, url: String, payload: &Request, max_resp: Option<u64>, cycles: Option<u64>, ) -> Result<Vec<u8>, String>
pub async fn post( &self, url: String, payload: &Request, max_resp: Option<u64>, cycles: Option<u64>, ) -> Result<Vec<u8>, String>
Trait Implementations§
Source§impl Clone for ICHttpClient
impl Clone for ICHttpClient
Source§fn clone(&self) -> ICHttpClient
fn clone(&self) -> ICHttpClient
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 Freeze for ICHttpClient
impl RefUnwindSafe for ICHttpClient
impl Send for ICHttpClient
impl Sync for ICHttpClient
impl Unpin for ICHttpClient
impl UnwindSafe for ICHttpClient
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