in lib/utils.dart [22:35]
Future<void> serveHandler(Handler handler) async {
final port = listenPort();
final server = await serve(
handler,
InternetAddress.anyIPv4, // Allows external connections
port,
);
print('Serving at http://${server.address.host}:${server.port}');
await terminateRequestFuture();
await server.close();
}