Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/attiand/http-echo
Simple server image that list information about the request in the response body
https://github.com/attiand/http-echo
Last synced: about 22 hours ago
JSON representation
Simple server image that list information about the request in the response body
- Host: GitHub
- URL: https://github.com/attiand/http-echo
- Owner: attiand
- Created: 2023-03-07T15:18:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-21T13:31:46.000Z (over 1 year ago)
- Last Synced: 2024-04-24T12:21:59.605Z (7 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# http-echo
Simple server image that list information about the request in the response body. *Note* that header names are in canonical case.
# Run
`docker run -it --rm -e NAME=server1 -p 8080:8080 ghcr.io/attiand/http-echo:latest`
## Test
`curl http://localhost:8080 | jq .`
```json
{
"name": "server1",
"request": {
"url": "/",
"method": "GET",
"headers": {
"Accept": [
"*/*"
],
"User-Agent": [
"curl/7.76.1"
]
}
}
}
```## Optional environment variables
- NAME - Specify a server name added to the response body