private static function getServerParam(ServerRequestInterface $request, string $key, string $default = '-'): string
    {
        $server = $request->getServerParams();

        return empty($server[$key]) ? $default : $server[$key];
    }