class_docstr: Handle HTTP requests.
class_docstr_tok: ["Handle","HTTP","requests","."]
code: def _handle_http(self, status_code, path, text=None):
      self.send_response(status_code)
      self.send_header("Content-type", "text/html")
      self.end_headers()
      content = WEB_HTML.format(STYLE_SHEET, FONT_AWESOME)
      return bytes(content, "UTF-8")
  
imports: from http.server import BaseHTTPRequestHandler, HTTPServer
  from parlai.scripts.interactive import setup_args
  from parlai.core.agents import create_agent
  from parlai.core.worlds import create_task
  from typing import Dict, Any
  from parlai.core.script import ParlaiScript, register_script
  import parlai.utils.logging
  import json
  import time
  from parlai.agents.local_human.local_human import LocalHumanAgent
label_desc: Use image node_id 5 for calling the MyHandler obj's underlying member method code with example usage: obj._handle_http(status_code, path, text) and returns: bytes