mirror of
https://github.com/YGGverse/yggverse.github.io.git
synced 2025-02-06 12:14:15 +00:00
add nps-php 1.2.0 release
This commit is contained in:
parent
283a9af725
commit
deb00f57cb
34
nps/nps-php/1.2.0.gmi
Normal file
34
nps/nps-php/1.2.0.gmi
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
# nps-php 1.2.0
|
||||||
|
|
||||||
|
Implemented optional Server response returned by custom handler
|
||||||
|
|
||||||
|
``` php
|
||||||
|
$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
|
||||||
|
|
||||||
|
=> https://github.com/YGGverse/nps-php/releases/tag/1.2.0 Download nps-php 1.2.0
|
@ -10,5 +10,6 @@ it listen for single dot in line to signal the package ending.
|
|||||||
|
|
||||||
## Releases
|
## Releases
|
||||||
|
|
||||||
|
=> 1.2.0.gmi 2024-04-25 1.2.0
|
||||||
=> 1.1.0.gmi 2024-04-25 1.1.0
|
=> 1.1.0.gmi 2024-04-25 1.1.0
|
||||||
=> 1.0.0.gmi 2024-04-24 1.0.0
|
=> 1.0.0.gmi 2024-04-24 1.0.0
|
Loading…
x
Reference in New Issue
Block a user