| Implemented by | yii\web\JsonParser, yii\web\MultipartFormDataParser |
|---|---|
| Available since version | 2.0 |
| Source Code | https://github.com/yiisoft/yii2/blob/master/framework/web/RequestParserInterface.php |
Interface for classes that parse the raw request body into a parameters array.
| Method | Description | Defined By |
|---|---|---|
| parse() | Parses a HTTP request body. | yii\web\RequestParserInterface |
Parses a HTTP request body.
| public abstract array parse ( $rawBody, $contentType ) | ||
|---|---|---|
| $rawBody | string |
The raw HTTP request body. |
| $contentType | string |
The content type specified for the request body. |
| return | array |
Parameters parsed from the request body |
© 2008–2017 by Yii Software LLC
Licensed under the three clause BSD license.
http://www.yiiframework.com/doc-2.0/yii-web-requestparserinterface.html