Interface yii\httpclient\ParserInterface
Implemented by | yii\httpclient\JsonParser, yii\httpclient\UrlEncodedParser, yii\httpclient\XmlParser |
---|---|
Available since extension's version | 2.0 |
Source Code | https://github.com/yiisoft/yii2-httpclient/blob/master/src/ParserInterface.php |
ParserInterface represents HTTP response message parser.
Public Methods
Method | Description | Defined By |
---|---|---|
parse() | Parses given HTTP response instance. | yii\httpclient\ParserInterface |
Method Details
Parses given HTTP response instance.
public abstract mixed parse ( yii\httpclient\Response $response ) | ||
$response | yii\httpclient\Response |
HTTP response instance. |
return | mixed |
Parsed content data. |
---|
public function parse(Response $response);