Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def cb_handle(args):
- req = args["request"]
- pyhttp = req.get_http()
- if pyhttp.startswith("/postprocess"):
- # run your post processing code here and put output somewhere
- resp = req.get_response()
- resp.set_status("200 OK")
- resp.add_header("Content-type", "text/html")
- resp.write("<html><body>")
- resp.write("<p>done!</p>")
- # dump your output here
- resp.write("</body></html>")
- return 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement