allow to stop and start http server at will with SIGINT, stop the server on uncaught throws, display timing info for each request, use setup_call_cleanup in more places to avoid potential leaks, when handler for a path doesn't have a matching case, throw a detailed error instead of silently continuing
This commit is contained in:
@@ -5,6 +5,7 @@ use warp::http;
|
||||
|
||||
pub struct HttpListener {
|
||||
pub incoming: std::sync::mpsc::Receiver<HttpRequest>,
|
||||
pub warp_shutdown: tokio::sync::mpsc::Sender<()>,
|
||||
}
|
||||
|
||||
pub struct HttpRequest {
|
||||
|
||||
Reference in New Issue
Block a user