Function start_http_server

Source
pub async fn start_http_server<App, AppDaemon, AppBuilder>(
    addr: &str,
    app_builder: AppBuilder,
) -> Result<()>
where App: 'static + Service, AppDaemon: 'static + ServiceDaemon<App>, AppBuilder: 'static + ServiceBuilder<App, AppDaemon>,
Examples found in repository?
examples/example_server.rs (line 22)
15async fn main() -> Result<(), anyhow::Error> {
16    #[cfg(feature = "settings")]
17    load_config("examples/config", "dev")?;
18
19    #[cfg(any(feature = "access_log"))]
20    setup_logging("examples/config/log4rs.yml")?;
21
22    start_http_server("127.0.0.1:6464", ExampleServiceBuilder {}).await
23}