code: private function buildResponse(
          ReactResponse $response,
          StreamInterface $body
      ) {
          $body->rewind();
  
          return $this->responseFactory->createResponse(
              $response->getCode(),
              $response->getReasonPhrase(),
              $response->getHeaders(),
              $body,
              $response->getVersion()
          );
      }
docs: Transform a React Response to a valid PSR7 ResponseInterface instance.
  
  @param ReactResponse   $response
  @param StreamInterface $body
  
  @return ResponseInterface