7 ms·
I'd say you were missing https://github.com/k0kubun/pp https://github.com/k0kubun/pp but the other tricky thing is that you can read a http.Request.Body only on
by manveru 8y ago
I'd say you were missing https://github.com/k0kubun/pp https://github.com/k0kubun/pp but the other tricky thing is that you can read a http.Request.Body only once unlike in Ruby. I usually use ioutil.ReadAll for that.
- workinthehead 8y agoThat's incorrect. Both languages require you to rewind the reader before you can read it a second time. You're probably just used to higher level frameworks like Sinatra or Rails that take care of it for you.