[][src]Struct sauron::Http

pub struct Http;

Methods

impl Http[src]

pub fn fetch_with_text_response_decoder<DE, CB, OUT, APP, MSG>(
    url: &str,
    response_text_decoder: DE,
    cb: CB
) -> Cmd<APP, MSG> where
    CB: Fn(Result<OUT, JsValue>) -> MSG + Clone + 'static,
    DE: Fn(String) -> OUT + Clone + 'static,
    OUT: 'static,
    APP: Component<MSG> + 'static,
    MSG: 'static, 
[src]

pub fn fetch_with_response_decoder<F, ERR, APP, MSG>(
    url: &str,
    response_decoder: F,
    fail_cb: ERR
) -> Cmd<APP, MSG> where
    F: Fn(JsValue) -> MSG + 'static,
    ERR: Fn(JsValue) -> MSG + 'static,
    APP: Component<MSG> + 'static,
    MSG: 'static, 
[src]

API for fetching http rest request

Auto Trait Implementations

impl Sync for Http

impl Unpin for Http

impl Send for Http

impl UnwindSafe for Http

impl RefUnwindSafe for Http

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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