Facebook Engineer?

This function is available as IO\request_input() in Facebook's www repository.

Return the input handle for the current request

namespace HH\Lib\IO;

function request_input(): ReadHandle;

In CLI mode, this is likely STDIN; for HTTP requests, it may contain the POST data, if any.

This MAY be a CloseableReadFDHandle.