Skip to main content

spawn_server

Function spawn_server 

Source
pub async fn spawn_server(
    port: u16,
    root_dir: impl AsRef<Path>,
) -> Result<ServerHandle, ServerError>
Expand description

Spawn an embedded static web server serving root_dir on port (or dynamic port if 0).