fork download
  1. def route(url):
  2. def _route(func):
  3. print "".join(["GET ", url, " HTTP/1.1", "\n"])
  4. print func()
  5. return _route
  6.  
  7. @route("/hello")
  8. def hello():
  9. return "Hello world"
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
GET /hello HTTP/1.1

Hello world