(self)
return getattr(self, 'method', default_method)
Return a string indicating the HTTP request method.
Return a string indicating the HTTP request method.
Return a string indicating the HTTP request method .
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)
def get_method ( self ) : default_method = "POST" if self . data is not None else "GET" return getattr ( self , 'method' , default_method )