def _get_handler_methods(handler):
 methods = []
 for method in get_app().allowed_methods:
  if getattr(handler, _normalize_handler_method(method), None):
   methods.append(method)
 return methods

def _get_handler_methods ( handler ) : methods = [ ] for method in get_app ( ) . allowed_methods : if getattr ( handler , _normalize_handler_method ( method ) , None ) : methods . append ( method ) return methods
returns a list of http methods supported by a handler .