Access Raw Request Body (POST request)


I’m aware you can do things like c.Bind to automatically bind request body to a struct. I was wondering if it’s possible to access the request body as a string? I have content that isn’t form-encoded or multipart-form but binary data encoded in a specific format.


You can read the request body c.Request().Body, may be using ioutil.ReadAll().