#!/usr/bin/env python
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import SocketServer
import time
class S(BaseHTTPRequestHandler):
def _set_headers(self):
self.send_response(200)
self.send_header('Content-type', 'text/html')
self.end_headers()
def do_GET(self):
self._set_headers()
if self.path == '/customelements_poc.html':
self.wfile.write(open('customelements_poc.html', 'r').read())
elif self.path == '/delay.xml':
time.sleep(2)
self.wfile.write("