Interface yii\httpclient\FormatterInterface
Implemented by | yii\httpclient\CurlFormatter, yii\httpclient\JsonFormatter, yii\httpclient\UrlEncodedFormatter, yii\httpclient\XmlFormatter |
---|---|
Available since extension's version | 2.0 |
Source Code | https://github.com/yiisoft/yii2-httpclient/blob/master/src/FormatterInterface.php |
FormatterInterface represents HTTP request message formatter.
Public Methods
Method | Description | Defined By |
---|---|---|
format() | Formats given HTTP request message. | yii\httpclient\FormatterInterface |
Method Details
Formats given HTTP request message.
public abstract yii\httpclient\Request format ( yii\httpclient\Request $request ) | ||
$request | yii\httpclient\Request |
HTTP request instance. |
return | yii\httpclient\Request |
Formatted request. |
---|
public function format(Request $request);