Last updated:
0 purchases
shelf docker shutdown
Close the HttpServer on process TERM signals.
Motivation #
You can run the shelf server in docker containers.
Because of the Dart compiler can generate single binary executables,
you can get very small docker container images.
It is good.
There is one problem that that containers do not shutdown smooth on docker controller's termination signal.
This library helps to do that.
Usage #
var server = await shelf_io.serve(handler, 'localhost', 8080);
await server.closeOnTermSignal();
copied to clipboard
See example folder for more details.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.