I have some path and query fields mapped to well-defined types like int and string. However, I want to read the request body as []byte or ideally, as map[string][]string. It seems c.Request.Body is non-empty in middleware but it is empty inside my gin routes wrapped in Fizz. What's the best way to access the body inside the handler?
I have some path and query fields mapped to well-defined types like
intandstring. However, I want to read the request body as[]byteor ideally, asmap[string][]string. It seemsc.Request.Bodyis non-empty in middleware but it is empty inside my gin routes wrapped in Fizz. What's the best way to access the body inside the handler?