CGIHTTPRequestHandler and rest - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: CGIHTTPRequestHandler and rest (/thread-16979.html) |
CGIHTTPRequestHandler and rest - geko - Mar-23-2019 hi all, how can I manage rest calls to this code? #!/usr/bin/env python3 from http.server import CGIHTTPRequestHandler, HTTPServer handler = CGIHTTPRequestHandler handler.cgi_directories = ['/cgi-bin', '/htbin'] server = HTTPServer(('localhost', 8080), handler) server.serve_forever() |