gato_http_server/
http_server_http_core.rs

1use std::collections::HashMap;
2use gato_core::kernel::{HttpCore};
3use crate::http_driver::start_server;
4
5
6pub struct HttpServerHttpCore { }
7
8impl HttpCore for HttpServerHttpCore {
9
10    fn handle(&self) {
11        start_server();
12    }
13
14    fn get_request_headers(&self) -> HashMap<String, String> {
15        return HashMap::new();
16    }
17
18    fn get_post_data(&self) -> String {
19        return "".to_owned();
20    }
21}
22
23impl HttpServerHttpCore {
24    pub fn new() -> Self {
25        return Self { };
26    }
27}