You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide source code and commit sha if you found a bug.
Review existing issues and provide feedback or react to them.
Description
If I want to perform binding operations on the request body multiple times, I think I should use ShouldBindBodyWith (), but each operation needs to specify the type, such as binding.JSON, so I think can we provide separate APIs for each type? For example, ShouldBindBodyWithJson() to operate on data of type binding.JSON, which can be used more conveniently in upper-level development
How to reproduce
Expectations
$ curl http://localhost:9000/hello/world
Hello world
Regarding your proposal, I thought about it for a while, and if other types of approaches were provided, it could really improve the development experience.
I'm currently experiencing some problems where parsing JSON content is something that doesn't meet my expectations, and I can only wait for someone else's answer.(See Issue)
Description
If I want to perform binding operations on the request body multiple times, I think I should use
ShouldBindBodyWith ()
, but each operation needs to specify the type, such asbinding.JSON
, so I think can we provide separate APIs for each type? For example,ShouldBindBodyWithJson()
to operate on data of typebinding.JSON
, which can be used more conveniently in upper-level developmentHow to reproduce
Expectations
Actual result
Environment
The text was updated successfully, but these errors were encountered: