def set_method()

in apisix/runner/http/request.py [0:0]


    def set_method(self, method: str) -> bool:
        """
        set request method
        :param method:
        :return:
        """
        # support common request method setting
        if method and method.upper() in ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"]:
            self.__method = method
            return True
        return False