-
-
Notifications
You must be signed in to change notification settings - Fork 88
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 POST with Content-type: application/json #57
Comments
I don't think it should be on by default. But an option, maybe? |
👍 on built-in support for application/json. I'm however not sure what's the best way to do it. |
@fprochazka Why do you think it shouldn't be on by default? |
I wouldn't like having it in |
Adding One option would be to add general |
@JanTvrdik And how should we add support for custom types? Don't forget that |
@enumag Remember that |
Does anybody feel like writing a prototype? |
I have made a getJSON method draft: novotnyj/http@0e68551 |
Request post attribute is currently filled with data from $_POST array. Would it be possible to set it like this
Nette\Utils\Json::decode(file_get_contents('php://input'), true);
when method is POST and Content-type is application/json?The text was updated successfully, but these errors were encountered: