Lines Matching refs:self
30 def _set_headers(self): argument
31 self.send_response(200)
32 self.send_header('Content-Type', 'text/html')
33 self.send_header('Content-Length', str(self.length))
34 self.end_headers()
36 def do_POST(self): argument
38 self.length = len(payload)
39 self._set_headers()
40 self.wfile.write(payload)
42 def do_GET(self): argument
44 self.length = len(payload)
45 self._set_headers()
46 self.wfile.write(payload.encode())