public function setSecure(bool $isSecure) : Request
    {
        $isStandardPort = ($this->port === ($this->isSecure ? 443 : 80));

        if ($isStandardPort) {
            $this->port = $isSecure ? 443 : 80;
        }

        $this->isSecure = $isSecure;

        return $this;
    }