def processMyRequest(self, query):
    self.send_response(200)
self.send_header('Content-Type', 'application/xml')
self.end_headers()
self.wfile.write("<?xml version='1.0'?>")
self.wfile.write('<sample>Some XML</sample>')
self.wfile.close()
Handler = MyHandler
httpd = SocketServer.TCPServer(('', PORT), Handler)
print('serving at port', PORT)
httpd.serve_forever()
Возникли проблемы с получением SimpleHTTPRequestHandler для ответа на AJAX