serve

Function serve 

Source
pub fn serve(host: &str, port: &str, root_dir: &str)
Expand description

Serves a simple HTTP server on the specified host and port, serving files from the given root directory.

ยงArguments

  • host - IP address or domain name to bind the server to
  • port - port number to listen on
  • root_dir - the root directory from which to serve files