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>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlocklessHttp
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