as the title say,I want to write a https server,using hyper crate.
async fn runmain() {
let addr = SocketAddr::from(([127, 0, 0, 1], 25025));
let make_service = make_service_fn(|_conn| async {
Ok::<_, hyper::Error>(service_fn(handle))
});
// Then bind and serve...
// And run forever...
if let Err(e) = Server::bind(&addr).serve(make_service).await {
eprintln!("server error: {}", e);
}
println!("START!");
}
but it can only serve http request, the document does not show how to serve https, it just mentioned that you can use hyper_tls for client request,