yii\httpclient\Response::getParser PHP Méthode

getParser() private méthode

private getParser ( ) : yii\httpclient\ParserInterface
Résultat 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);
    }