yii\httpclient\Response::getParser PHP Method

getParser() private method

private getParser ( ) : yii\httpclient\ParserInterface
return yii\httpclient\ParserInterface message parser instance.
    private function getParser()
    {
        $format = $this->getFormat();
        if ($format === null) {
            throw new Exception("Unable to detect format for content parsing. Raw response:\n\n" . $this->toString());
        }
        return $this->client->getParser($format);
    }