frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

should stdin be the request body?

Open withinboredom opened this issue 1 year ago • 0 comments

Describe you feature request

I was trying to read a slow, chunked request in PHP, however, php://input can only be read once and to completion. What do you think about adding the ability to read a request body from php://stdin? I'm not sure how this would work, exactly, but it would give the ability to stream a body (no matter the size)?

Describe the solution you'd like php://stdin should allow reading the request body.

withinboredom avatar Aug 11 '24 20:08 withinboredom