https://github.com/sgaunet/http-echo
webserver that prints miscellaneous informations about the http request.
https://github.com/sgaunet/http-echo
echo http webserver
Last synced: 3 months ago
JSON representation
webserver that prints miscellaneous informations about the http request.
- Host: GitHub
- URL: https://github.com/sgaunet/http-echo
- Owner: sgaunet
- License: mit
- Created: 2022-03-06T19:52:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-12T13:09:49.000Z (9 months ago)
- Last Synced: 2025-02-05T09:19:03.617Z (5 months ago)
- Topics: echo, http, webserver
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/sgaunet/http-echo/releases/latest)
[](https://goreportcard.com/report/github.com/sgaunet/http-echo)

[](https://codeclimate.com/github/sgaunet/http-echo/maintainability)
[](https://godoc.org/github.com/sgaunet/http-echo)
[](LICENSE)# http-echo
Just a webserver that prints miscellaneous informations about the http request. It can be used to play with docker and kubernetes.
```
$ docker-compose up -d
...
$ curl -i http://localhost:8080/hello?t=toto
HTTP/1.1 200 OK
Date: Thu, 10 Mar 2022 16:21:11 GMT
Content-Length: 374
Content-Type: text/plain; charset=utf-8r.URL.Query() :
t => [toto]
End r.URL.Query()Headers :
User-Agent => [curl/7.68.0]
Accept => [*/*]
End Headersr.PostForm: map[]
r.RequestURI: /hello?t=toto
r.URL.Query(): map[t:[toto]]
r.Form: map[]
body:
url.ParseQuery(string(body))End url.ParseQuery(string(body))Method: GET
Host: localhost:8080
Proto: HTTP/1.1
Remote Addr: 172.18.0.1:43454
Hostname: 633b9fd87484
```