feat: #12 remove rename handlers mod into http
This commit is contained in:
parent
8049763b18
commit
495d57c403
@ -3,7 +3,7 @@
|
|||||||
//! message specs. see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages
|
//! message specs. see: https://developer.mozilla.org/en-US/docs/Web/HTTP/Messages
|
||||||
//! NOTE: only few parts of the specification has been implemented
|
//! NOTE: only few parts of the specification has been implemented
|
||||||
|
|
||||||
use crate::handlers::request::{HTTPRequest, HTTPVersion};
|
use crate::http::request::{HTTPRequest, HTTPVersion};
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use json;
|
use json;
|
||||||
// add the Store trait to be used by `FileStore`
|
// add the Store trait to be used by `FileStore`
|
||||||
@ -1,4 +1,4 @@
|
|||||||
mod handlers;
|
mod http;
|
||||||
mod stores;
|
mod stores;
|
||||||
|
|
||||||
use tokio::{
|
use tokio::{
|
||||||
@ -6,7 +6,7 @@ use tokio::{
|
|||||||
net::{TcpListener, TcpStream},
|
net::{TcpListener, TcpStream},
|
||||||
};
|
};
|
||||||
|
|
||||||
use handlers::{handle_request, HTTPResponse};
|
use http::{handle_request, HTTPResponse};
|
||||||
|
|
||||||
const SERVER_URL: &str = "127.0.0.1:9000";
|
const SERVER_URL: &str = "127.0.0.1:9000";
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user