I can't find any python code for the equiavalent of
python -m http.server port --bind addr --directory dir
So I need basicaly working server class that prcoess at least GET requests. Most of the things I found on google either http server with some special needs or something like that, where you need to code response behaviour be yourself:
from http.server import BaseHTTPRequestHandler, HTTPServer
def run(server_class=HTTPServer, handler_class=BaseHTTPRequestHandler):
server_address = ('', 8000)
httpd = server_class(server_address, handler_class)
httpd.serve_forever()
run()
All that I need is default working skeleton of python http server, where you can provide address, port and directory, and it would normally process GET reqeuests.