docstr: Respond to a GET request.
docstr_tok: ["Respond","to","a","GET","request","."]
code: def do_GET(self):
      """Respond to a GET request."""
      if self.path == "/":
          self.send_response(200)
          self.send_header("Content-type", "text/html")
          self.end_headers()
          with open("index.html", "r") as file:
              data = file.read()
              self.wfile.write(data.encode())
      elif self.path == "/buildinfo.json":
          self.send_response(200)
          self.send_header("Content-type", "application/json")
          self.end_headers()
          with open("buildinfo.json", "r") as file:
              template_def = file.read().replace("SUBST_", "$")
              template = Template(template_def)
              data = template.substitute(**version_info)
              self.wfile.write(data.encode())
  
imports: from http.server import BaseHTTPRequestHandler, HTTPServer
  from string import Template
  from datetime import datetime
label_desc: Use image node_id 1 for calling the LocalDevServer obj's underlying member method code with example usage: obj.do_GET() without return types