feat: add query parameter to print env vars

This commit is contained in:
Fernandez Ludovic
2023-07-08 15:55:47 +02:00
parent eeea0e75c9
commit 932937c4e8
2 changed files with 34 additions and 9 deletions

View File

@ -16,10 +16,14 @@ Returns the whoami information (request and network information).
The optional `wait` query parameter can be provided to tell the server to wait before sending the response.
The duration is expected in Go's [`time.Duration`](https://golang.org/pkg/time/#ParseDuration) format (e.g. `/?wait=100ms` to wait 100 milliseconds).
The optional `env` query parameter can be set to `true` to add the environment variables to the response.
#### `/api`
Returns the whoami information as JSON.
The optional `env` query parameter can be set to `true` to add the environment variables to the response.
#### `/bench`
Always return the same response (`1`).