Displays a base image and an "x-ray" view of a second image where the mouse is pointing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
493 B

  1. # just for testing locally
  2. import http.server
  3. class MyHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
  4. def end_headers(self):
  5. self.send_my_headers()
  6. http.server.SimpleHTTPRequestHandler.end_headers(self)
  7. def send_my_headers(self):
  8. self.send_header("Cache-Control", "no-cache")
  9. self.send_header("Pragma", "no-cache")
  10. self.send_header("Expires", "0")
  11. if __name__ == '__main__':
  12. http.server.test(HandlerClass=MyHTTPRequestHandler)