Interface yii\httpclient\FormatterInterface

Implemented byyii\httpclient\JsonFormatter, yii\httpclient\UrlEncodedFormatter, yii\httpclient\XmlFormatter
Available since version2.0

FormatterInterface represents HTTP request message formatter.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
format() Formats given HTTP request message. yii\httpclient\FormatterInterface

Method Details

format() public abstract method

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.