pub fn serve(archive: &'static str) -> ServerExpand description
Spawns a webserver to serve the given archive.
The archive is an .a (ar) file, in a format that can be parsed by the ar
crate. Files can be base64, UTF-8, or ar: a .b, .t, or .a suffix to
the filename identifies the type. Directories are represented as nested ar
files.
§Panics
Panics if the server cannot be started.
§Returns
Returns a handle to be able to shut down the server, and the port number.