Trait xkcd::XkcdRequestSender [] [src]

pub trait XkcdRequestSender {
    fn send<'a>(
        &'a self,
        method: &str
    ) -> Box<Future<Item = String, Error = HttpRequestError> + 'a>; }

Functionality for sending requests to the XKCD API via HTTPS.

Should be implemented for clients to send requests to the XKCD API.

Required Methods

Performs an API call to the XKCD web API.

Implementations on Foreign Types

impl<C> XkcdRequestSender for Client<C> where
    C: Connect
[src]

[src]

Implementors