Skip to main content

serve

Function serve 

Source
pub async fn serve(config: ServeConfig) -> Result<()>
Expand description

Start the web server and block until it shuts down.

Binds to config.bind:config.port, prints the access URL (with a token for non-loopback addresses), and serves until the process is terminated.