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
fn send<'a>(
&'a self,
method: &str
) -> Box<Future<Item = String, Error = HttpRequestError> + 'a>
&'a self,
method: &str
) -> Box<Future<Item = String, Error = HttpRequestError> + 'a>
Performs an API call to the XKCD web API.
Implementations on Foreign Types
impl<C> XkcdRequestSender for Client<C> where
C: Connect,
[src]
C: Connect,