parameters: (self)
docstring: Get the HTTPHandler object for the current connection
docstring_summary: Get the HTTPHandler object for the current connection
docstring_tokens: Get the HTTPHandler object for the current connection
function: def get_handler(self):
          """
          Get the HTTPHandler object for the current connection
          """
  
          if not self.opener:
              return None
  
          for handler in self.opener.handlers:
              if isinstance(handler, ValidatingHTTPSHandler) or isinstance(handler, DebuggableHTTPHandler):
                  return handler
function_tokens: def get_handler ( self ) : if not self . opener : return None for handler in self . opener . handlers : if isinstance ( handler , ValidatingHTTPSHandler ) or isinstance ( handler , DebuggableHTTPHandler ) : return handler