You can access the underlying http.Request object and read the raw POST data from there.
func handler(c *gin.Context) string {
request := c.Request
body, _ := io.ReadAll(request.Body)
defer request.Body.Close() //Need to close Body after reading it.
return string(body)
}