-- Leo's gemini proxy

-- Connecting to yggverse.cities.yesterweb.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

nps-php 1.2.0


Implemented optional Server response returned by custom handler


$server->start(
    function (
          bool $success,
        string $content,
        string $request,
        string $connect
    ): ?string
    {
        printf(
            'connection: %s request: %s',
            $connect,
            $request
        );

        if ($success)
        {
            var_dump(
                $content
            );
        }

        return 'thank you!'; // null|string response
    }
);

Links


Download nps-php 1.2.0

-- Response ended

-- Page fetched on Mon May 20 20:45:44 2024