Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加对http请求参数为applictaion/json格式的注入支持 #11

Open
narrowizard opened this issue Dec 21, 2017 · 1 comment
Open

Comments

@narrowizard
Copy link
Contributor

narrowizard commented Dec 21, 2017

https://stackoverflow.com/questions/15672556/handling-json-post-request-in-go
解析request body到map,再将map中的值存入到Form中去,是否可行 @kdada
https://github.com/kdada/tinygo/blob/master/web/context.go#L73

narrowizard added a commit to narrowizard/tinygo that referenced this issue Dec 25, 2017
@kdada
Copy link
Owner

kdada commented Jan 10, 2018

In most occasion, there is json data in body. So you can inject struct by value provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants