Interface yii\httpclient\ParserInterface

Implemented byyii\httpclient\JsonParser, yii\httpclient\UrlEncodedParser, yii\httpclient\XmlParser
Available since version2.0

ParserInterface represents HTTP response message parser.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
parse() Parses given HTTP response instance. yii\httpclient\ParserInterface

Method Details

parse() public abstract method

Parses given HTTP response instance.

public abstract array parse ( yii\httpclient\Response $response )
$response yii\httpclient\Response

HTTP response instance.

return array

Parsed content data.