code: def _send_content(self, content, content_type, code=200):
      
      assert isinstance(content, bytes)
      self.send_response(code)
      self.send_header('Content-Type', content_type)
      self.send_header('Content-Length', str(len(content)))
      self.end_headers()
      self.wfile.write(content)
docs: Send content to client.