Total Pageviews

Tuesday, 29 March 2022

Tornado-Simple-HTTP-Server

This is a simple HTTP server serving static files.

Usage

python -m TornadoSimpleHTTPServer or python TornadoSimpleHTTPServer.py

You can pass one or two arguments. The last argument is the TCP port number to listen on. The other one, if exists, is the hostname to listen on.

Notes

Unlike python -m http.server, TornadoSimpleHTTPServer can serve multiple connections concurrently thanks to Tornado web framework.

Warning

Tornado is not designed to serve too large files. You may want to switch to other professional HTTP server software.

from https://github.com/m13253/tornado-simple-http-server

No comments:

Post a Comment