These are chat archives for gin-gonic/gin

20th
Mar 2015
peterle55
@peterle55
Mar 20 2015 14:57
Hi, how can I just Println the body of a request inside the handler function?
Nick K
@utrack
Mar 20 2015 20:05
@peterle55 i believe c.Request.Body stores it
@peterle55 however you can use c.BindWith to bind it to struct
@javierprovecho no worries :) I'll send a PR a tad later then
ugly emoji...
Javier Provecho Fernandez
@javierprovecho
Mar 20 2015 20:08
@peterle55 yes, as @utrack said, body is in context, accessible by default with
```go
c.Request.Body