public function retry_modify_request(callable $decider, callable $requestModifier, callable $delay = null)
    {
        return function (callable $handler) use ($decider, $requestModifier, $delay) {
            return new RetryModifyRequestMiddleware($decider, $requestModifier, $handler, $delay);
        };
    }