/**
  * @param ReactRequest $reactRequest
  *
  * @return StreamInterface
  */
 private function transformBody(ReactRequest $reactRequest)
 {
     $body = $this->psr7Factory->createStream();
     $body->write((string) $reactRequest->getBody());
     $body->rewind();
     return $body;
 }
 /**
  * @param \swoole_http_request $swooleRequest
  *
  * @return StreamInterface
  */
 private function transformBody(\swoole_http_request $swooleRequest)
 {
     $body = $this->psr7Factory->createStream();
     if (isset($swooleRequest->fd) && false !== ($rawContent = $swooleRequest->rawContent())) {
         $body->write($rawContent);
         $body->rewind();
         unset($rawContent);
     }
     return $body;
 }