mirror of
https://github.com/YGGverse/next.git
synced 2026-03-31 17:55:34 +00:00
add bytes returned macos support, update realpath dump, change response condition
This commit is contained in:
parent
8745b4aa00
commit
9c0bfd3e58
2 changed files with 8 additions and 5 deletions
|
|
@ -36,13 +36,14 @@ php src/nex.php host=127.0.0.1 port=1900 path=/target/dir
|
|||
* `list` - show content listing in the requested directory (when index file not found), `yes` by default
|
||||
* `fail` - **filepath** that contain failure text or template (e.g. `error.gmi`), `fail` text by default
|
||||
* `size` - limit request length in bytes, `1024` by default
|
||||
* `dump` - dump queries or set blank to disable, default: `[{time}] [{code}] {host}:{port} {path} {real}`
|
||||
* `dump` - dump queries or blank to disable, default: `[{time}] [{code}] {host}:{port} {path} {real} {size} bytes`
|
||||
* `{time}` - event time in `c` format
|
||||
* `{code}` - formal response code: `1` - found, `0` - not found
|
||||
* `{host}` - peer host
|
||||
* `{port}` - peer port
|
||||
* `{path}` - path requested
|
||||
* `{real}` - **realpath** returned
|
||||
* `{size}` - response size in bytes
|
||||
|
||||
### Autostart
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue