[][src]Trait interledger_http::HttpStore

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>; }

The interface for Stores that can be used with the HttpServerService.

Associated Types

Loading content...

Required methods

fn get_account_from_http_auth(
    &self,
    username: &Username,
    token: &str
) -> Box<dyn Future<Item = Self::Account, Error = ()> + Send>

Load account details based on the full HTTP Authorization header received on the incoming HTTP request.

Loading content...

Implementors

Loading content...