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.