pub trait Fetch: Clone + Send + Sync + 'static {
    type Result: Future<Item = Response, Error = Error> + Send + 'static;
    fn fetch(&self, request: Request, abort: Abort) -> Self::Result;
fn get(&self, url: &str, abort: Abort) -> Self::Result;
fn post(&self, url: &str, abort: Abort) -> Self::Result; }
Expand description

Types which retrieve content from some URL.

Associated Types

The result future.

Required methods

Make a request to given URL

Get content from some URL.

Post content to some URL.

Implementors