HttpServiceFactory

Trait HttpServiceFactory 

Source
pub trait HttpServiceFactory: Sync {
    // Required methods
    fn register(&self) -> Resource;
    fn analyze_types(&self, url: UrlPatternMatchInput) -> bool;
    fn handler_func<'life0, 'async_trait>(
        &'life0 self,
        url: UrlPatternMatchInput,
        req: Request,
    ) -> Pin<Box<dyn Future<Output = Responder> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn register(&self) -> Resource

Source

fn analyze_types(&self, url: UrlPatternMatchInput) -> bool

Source

fn handler_func<'life0, 'async_trait>( &'life0 self, url: UrlPatternMatchInput, req: Request, ) -> Pin<Box<dyn Future<Output = Responder> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§