PHP Class yii\httpclient\UrlEncodedFormatter

Since: 2.0
Author: Paul Klimov ([email protected])
Inheritance: extends yii\base\Object, implements yii\httpclient\FormatterInterface
Mostrar archivo Open project: yiisoft/yii2-httpclient

Public Properties

Property Type Description
$charset the content charset. If not set, it will use the value of [[\yii\base\Application::charset]].
$encodingType URL encoding type. Possible values are: - PHP_QUERY_RFC1738 - encoding is performed per 'RFC 1738' and the 'application/x-www-form-urlencoded' media type, which implies that spaces are encoded as plus (+) signs. This is most common encoding type used by most web applications. - PHP_QUERY_RFC3986 - then encoding is performed according to 'RFC 3986', and spaces will be percent encoded (%20). This encoding type is required by OpenID and OAuth protocols.

Public Methods

Method Description
format ( Request $request )

Method Details

format() public method

public format ( Request $request )
$request Request

Property Details

$charset public_oe property

the content charset. If not set, it will use the value of [[\yii\base\Application::charset]].
Since: 2.0.1
public $charset

$encodingType public_oe property

URL encoding type. Possible values are: - PHP_QUERY_RFC1738 - encoding is performed per 'RFC 1738' and the 'application/x-www-form-urlencoded' media type, which implies that spaces are encoded as plus (+) signs. This is most common encoding type used by most web applications. - PHP_QUERY_RFC3986 - then encoding is performed according to 'RFC 3986', and spaces will be percent encoded (%20). This encoding type is required by OpenID and OAuth protocols.
public $encodingType