TheBeege

HTTPHandler

Jan 18th, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. from BaseHTTPServer import BaseHTTPRequestHandler
  2.  
  3. class MonsterBrawlHandler(BaseHTTPRequestHandler):
  4. ...
  5.  
  6.   def do_GET(self):
  7.     ...
  8.     self.send_response(200)
  9.     self.send_header('Content-type', 'application/json')
  10.     self.end_headers()
  11.     self.wfile.write(responseText)
Advertisement
Add Comment
Please, Sign In to add comment