public function setMaxRedirects($maxRedirects) {
        if (!is_int($maxRedirects)) throw new IllegalTypeException('Illegal type of parameter $maxRedirects: '.gettype($maxRedirects));

        $this->maxRedirects = $maxRedirects;
        return $this;
    }