Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 CGIHTTPRequestHandler and rest
#1
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()

Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)