public function getRetry(
        string $url,
        string $method
    ): ? Retry {
        $url = trim(trim(strtolower($url)), '/');
        $method = trim(strtolower($method));

        if (isset($this->retries[$url.'~~'.$method])) {
            return $this->retries[$url.'~~'.$method];
        }

        if (isset($this->retries['*~~'.$method])) {
            return $this->retries['*~~'.$method];
        }

        if (isset($this->retries[$url.'~~*'])) {
            return $this->retries[$url.'~~*'];
        }

        if (isset($this->retries['*~~*'])) {
            return $this->retries['*~~*'];
        }

        return null;
    }