♻️ refactor: get rid of mod.rs
parent
90b6b6913e
commit
810a34463c
|
@ -97,8 +97,8 @@ fn error_reply (status: StatusCode, b: &str)
|
||||||
.body (format! ("{}\n", b).into ())
|
.body (format! ("{}\n", b).into ())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clients will come here to start requests, and always park for at least
|
/// Clients will come here to start requests, and always park for at least
|
||||||
// a short amount of time.
|
/// a short amount of time.
|
||||||
|
|
||||||
async fn handle_http_request (
|
async fn handle_http_request (
|
||||||
req: http::request::Parts,
|
req: http::request::Parts,
|
||||||
|
|
|
@ -135,8 +135,8 @@ pub async fn handle_listen (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Servers will come here to stream responses to clients
|
/// Servers will come here to stream responses to clients.
|
||||||
// Step 5
|
/// (Step 5 in the docs)
|
||||||
|
|
||||||
pub async fn handle_response (
|
pub async fn handle_response (
|
||||||
req: Request <Body>,
|
req: Request <Body>,
|
||||||
|
|
Loading…
Reference in New Issue