http-server 0.8.9

Simple and configurable command-line HTTP server
Documentation
1
2
3
4
5
6
pub async fn shutdown_signal() {
    tokio::signal::ctrl_c()
        .await
        .expect("Failed to hook Ctrl + C signal handler");
    println!("Received Ctrl + C Signal");
}