Class yii\httpclient\JsonFormatter

Inheritanceyii\httpclient\JsonFormatter » yii\base\BaseObject
Available since version2.0
Source Code

JsonFormatter formats HTTP message as JSON.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$encodeOptions integer The encoding options. yii\httpclient\JsonFormatter

Public Methods

Hide inherited methods

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

Property Details

$encodeOptions public property

The encoding options. For more details please refer to

Method Details

format() public method

Formats given HTTP request message.

public yii\httpclient\Request format ( yii\httpclient\Request $request )
$request yii\httpclient\Request

HTTP request instance.

return yii\httpclient\Request

Formatted request.