[][src]Struct mini::aio::http::Http

pub struct Http {}

Methods

impl Http[src]

pub fn new() -> Self[src]

pub fn blocking_get(&self, uri: &str) -> Result<Vec<u8>>[src]

pub fn blocking_post(&self, uri: &str) -> Result<Vec<u8>>[src]

pub fn get<HANDLER>(
    &self,
    uri: &str,
    event_loop: &mut Loop,
    handler: HANDLER
) -> Result<(), ()> where
    HANDLER: HttpHandler + 'static, 
[src]

pub fn post<HANDLER>(
    &self,
    uri: &str,
    event_loop: &mut Loop,
    handler: HANDLER
) -> Result<(), ()> where
    HANDLER: HttpHandler + 'static, 
[src]

Trait Implementations

impl Default for Http[src]

Auto Trait Implementations

impl Send for Http

impl Unpin for Http

impl Sync for Http

impl UnwindSafe for Http

impl RefUnwindSafe for Http

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]