https://github.com/rusenask/echo-debug-server
Debug HTTP server
https://github.com/rusenask/echo-debug-server
debug echo golang http
Last synced: about 1 year ago
JSON representation
Debug HTTP server
- Host: GitHub
- URL: https://github.com/rusenask/echo-debug-server
- Owner: rusenask
- License: mit
- Created: 2024-02-28T21:46:11.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-06T18:19:18.000Z (over 1 year ago)
- Last Synced: 2025-03-19T02:44:53.345Z (about 1 year ago)
- Topics: debug, echo, golang, http
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP debug echo server
Send requests at it and it will disect them back.
Start the server:
```
go run main.go
```
Then, any incoming requests will be reflected back with the details:
```
curl -X POST http://localhost:8888\?some\=query --data '{"json": "data"}'
{
"ServerInfo": {
"Port": ":8888"
},
"method": "POST",
"path": "/",
"raw_query": "some=query",
"header": {
"Accept": [
"*/*"
],
"Content-Length": [
"16"
],
"Content-Type": [
"application/x-www-form-urlencoded"
],
"User-Agent": [
"curl/7.68.0"
]
},
"body": "{\"json\": \"data\"}",
"form_values": null
}
```
To run on specific port:
```
PORT=8080 go run main.go
```