Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

http server in python

from netR import netR

def handler(req, res):
  res.write("Hello World")
  res.end()

server = netR.http_server()
server.add(handler)
server.listen(port=5000, ip="127.0.0.1")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #http #server #python
ADD COMMENT
Topic
Name
4+7 =