daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class HttpHandler(object):
  2.     def __call__(self, request, start_response):
  3.         data = 'Hello, World!\n'
  4.         status = '200 OK'
  5.         response_headers = [
  6.             ('Content-type','text/plain'),
  7.             ('Content-Length', str(len(data)))
  8.         ]
  9.         start_response(status, response_headers)
  10.         return iter([data])
  11.  
  12. app = HttpHandler()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top