protected function createStream(BrowserKitRequest $request)
    {
        $stream = fopen('php://temp', 'a+');
        fwrite($stream, $request->getContent());
        
        return new Stream($stream);
    }