3 ms·
Many people here fail to realize, this is an excellent debugging server. I used to have a server to print out the body and headers of requests when building an
by minhajuddin 10y ago
Many people here fail to realize, this is an excellent debugging server. I used to have a server to print out the body and headers of requests when building an api to make sure things were going (the right headers and request body) out as expected https://github.com/minhajuddin/httpdebug/blob/master/app.go https://github.com/minhajuddin/httpdebug/blob/master/app.go.
This is a much lighter and nicer version. This is going into my ~/bin/httpdebug :)
You can try sending a few curl requests to see that this really prints the headers and body.
curl -H "api-key: Foo" -X POST --form name=Khaja http://localhost:8080/