gato_http_server/
http_server_service_provider.rs

1use gato_core::kernel::HttpCoreHandler;
2use gato_core::kernel::Provider;
3use crate::HttpServerHttpCore;
4
5pub struct HttpServerServiceProvider { }
6
7impl HttpServerServiceProvider {
8    pub fn new() -> Box<Self> {
9        return Box::new(Self {  });
10    }
11}
12
13impl Provider for HttpServerServiceProvider {
14    fn boot(&self) {
15        let http_server_http_core = HttpServerHttpCore::new();
16        HttpCoreHandler::set_driver(Box::new(http_server_http_core));
17    }
18}
19