Struct blockless_sdk::BlocklessHttp
source · pub struct BlocklessHttp { /* private fields */ }Implementations§
source§impl BlocklessHttp
impl BlocklessHttp
pub fn open(url: &str, opts: &HttpOptions) -> Result<Self, HttpErrorKind>
pub fn get_code(&self) -> CodeStatus
pub fn get_all_body(&self) -> Result<Vec<u8>, HttpErrorKind>
pub fn get_header(&self, header: &str) -> Result<String, HttpErrorKind>
pub fn close(self)
pub fn read_body(&self, buf: &mut [u8]) -> Result<u32, HttpErrorKind>
Auto Trait Implementations§
impl RefUnwindSafe for BlocklessHttp
impl Send for BlocklessHttp
impl Sync for BlocklessHttp
impl Unpin for BlocklessHttp
impl UnwindSafe for BlocklessHttp
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