I propose to either add a --wsgi
flag to http.server
or write code in wsgiref.simple_server
similar to the code in http.server
. Loading of the application object can be done easily using importlib
. I would gladly write the code and submit a PR.
2 Likes