💾 Archived View for yggverse.cities.yesterweb.org › nps › nps-php › 1.2.0.gmi captured on 2024-05-12 at 15:12:17. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

-=-=-=-=-=-=-

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