use futures::Future;
use interledger_service::{Account, Username};
use url::Url;
mod client;
mod server;
mod limit_stream;
pub use self::client::HttpClientService;
pub use self::server::HttpServerService;
pub trait HttpAccount: Account {
fn get_http_url(&self) -> Option<&Url>;
fn get_http_auth_token(&self) -> Option<&str>;
}
pub trait HttpStore: Clone + Send + Sync + 'static {
type Account: HttpAccount;
fn get_account_from_http_auth(
&self,
username: &Username,
token: &str,
) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>;
}