parameters: (self)
return_statement: return getattr(self, 'method', default_method)
docstring: Return a string indicating the HTTP request method.
docstring_summary: Return a string indicating the HTTP request method.
docstring_tokens: Return a string indicating the HTTP request method .
function: def get_method(self):
          """Return a string indicating the HTTP request method."""
          default_method = "POST" if self.data is not None else "GET"
          return getattr(self, 'method', default_method)
function_tokens: def get_method ( self ) : default_method = "POST" if self . data is not None else "GET" return getattr ( self , 'method' , default_method )