https://github.com/robsonpeixoto/echo-server
A simple HTTP echo server
https://github.com/robsonpeixoto/echo-server
debug flask http python request
Last synced: 25 days ago
JSON representation
A simple HTTP echo server
- Host: GitHub
- URL: https://github.com/robsonpeixoto/echo-server
- Owner: robsonpeixoto
- Created: 2017-03-21T00:31:38.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-07-23T03:11:40.000Z (7 months ago)
- Last Synced: 2025-07-23T05:19:48.426Z (7 months ago)
- Topics: debug, flask, http, python, request
- Language: Go
- Homepage:
- Size: 76.2 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# echo-server
Just a simple http application to test and debug HTTP requests.
## Docker Registries
- [Docker Hub](https://hub.docker.com/r/robsonpeixoto/echo-server)
- [AWS ECR Public](https://gallery.ecr.aws/v2m3p9l8/robsonpeixoto/echo-server)
- [Github Docker Registry](https://github.com/robsonpeixoto/echo-server/pkgs/container/echo-server)
## Usage
```sh
❯ docker run --rm -p 5000:5000 -e PORT=5000 -e APP_NAME=robinho -e SHOW_ENVS=1 robsonpeixoto/echo-server
```
In other terminal execute the command:
```sh
❯ http localhost:5000
HTTP/1.1 200 OK
Content-Length: 428
Content-Type: application/json
Date: Wed, 09 Aug 2023 10:42:10 GMT
{
"extras": {
"app_name": "robinho",
"envs": {
"APP_NAME": "robinho",
"HOME": "/root",
"HOSTNAME": "b8abc5c78e4f",
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PORT": "5000",
"SHOW_ENVS": "1"
}
},
"form": null,
"headers": {
"Accept": [
"*/*"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Connection": [
"keep-alive"
],
"User-Agent": [
"HTTPie/3.2.2"
]
},
"method": "GET",
"path": "/",
"query": {},
"remote": {
"address": "192.168.215.1",
"port": "51628"
}
}
```