uwsgi-phpsgi
uwsgi-phpsgi copied to clipboard
Implement request body handling
Maybe
$env->read($amount);
will be more than enough
It is better to use the pecl module HTTP http://devel-m6w6.rhcloud.com/mdref/http/Env
Well, it would really ease the interaction between the script and the server, but it’s also an extra dependency. My personal opinion is that the Request/Response objects should be constructed by the web application itself. However, TBH, I am not really confident on which is better.
Ok, then it must be PSR-7 https://github.com/php-fig/fig-standards/blob/master/proposed/http-message.md
:+1: for PSR-7
Interesting (i mean PSR-7) implementing it could be a good start (and path to follow)
Looks like PSR-7 is ready to use https://mwop.net/blog/2015-01-26-psr-7-by-example.html
Never heard of PSR-7 (and the whole FIG initiative), but it looks good and promising, thanks for sharing that!
PSR-7 passed https://groups.google.com/forum/#!topic/php-fig/0baLqR6Rvcg
Ok, so the best thing to do now is minimize the c api (to the real possible minimum) and implement the psr-7 interface on top of it (directly in php in a way similar to what we did with pypy)
Anyway, is there any ETA on ability to handle request body?