public function setServerOrigin(string $scheme, string $host, int $port): self
    {
        \assert(empty($scheme) === false);
        \assert(empty($host) === false);
        \assert(0 < $port && $port <= 0xFFFF);

        $this->serverOriginScheme = $scheme;
        $this->serverOriginHost   = $host;

        if (\strcasecmp($scheme, 'http') === 0 && $port === 80) {
            $port = null;
        } elseif (\strcasecmp($scheme, 'https') === 0 && $port === 443) {
            $port = null;
        }
        $this->serverOriginPort = $port;

        return $this;
    }