code: private function buildReactRequest(RequestInterface $request)
      {
          $headers = [];
  
          foreach ($request->getHeaders() as $name => $value) {
              $headers[$name] = (is_array($value) ? $value[0] : $value);
          }
  
          $reactRequest = $this->client->request(
              $request->getMethod(),
              (string) $request->getUri(),
              $headers,
              $request->getProtocolVersion()
          );
  
          return $reactRequest;
      }
docs: Build a React request from the PSR7 RequestInterface.
  
  @param RequestInterface $request
  
  @return ReactRequest