示例#1
0
 /**
  * Read request body from the file given in REQUEST_BODY_FILE parameter.
  * @return void
  */
 public function readBodyFile()
 {
     if (!isset($this->attrs->server['REQUEST_BODY_FILE'])) {
         return false;
     }
     FS::readfileChunked($this->attrs->server['REQUEST_BODY_FILE'], function ($file, $success) use($req) {
         $req->attrs->stdin_done = true;
     }, function ($file, $chunk) use($req) {
         // readed chunk
         $req->stdin($chunk);
     });
 }