public function body($parser = null)
    {
        deprecationWarning(
            'Response::body() is deprecated. Use getStringBody()/getJson()/getXml() instead.'
        );

        $stream = $this->stream;
        $stream->rewind();
        if ($parser) {
            return $parser($stream->getContents());
        }

        return $stream->getContents();
    }