echo icon indicating copy to clipboard operation
echo copied to clipboard

The received data is json data, how can I still get the original data after bind?

Open OneSeven opened this issue 4 years ago • 2 comments

The json data is passed from the front end, and the original data cannot be obtained after bind. How can I obtain the original data after bind ? preferably formatted PostForm data

OneSeven avatar Aug 17 '21 08:08 OneSeven

You might want to read this https://github.com/labstack/echo/issues/692#issuecomment-299738295

Binder read all data from request reader and default readers do not support reading it twice so you need workarounds for that.

aldas avatar Aug 17 '21 09:08 aldas

You might want to read this #692 (comment)

Binder read all data from request reader and default readers do not support reading it twice so you need workarounds for that.

Can echo support this function? It can be packaged like ordinary postForm, so the experience can be greatly improved

OneSeven avatar Aug 17 '21 09:08 OneSeven