pub fn start(
lib: Shared,
ports: impl IntoIterator<Item = u16>,
on_request: impl Fn() + Send + 'static,
) -> Result<Handle>Expand description
Starts serving on the first free port of ports, calling on_request
after each handled request (for example to repaint a UI).