Interface yii\web\RequestParserInterface
| 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.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| parse() | Parses a HTTP request body. | yii\web\RequestParserInterface |
Method Details
Parses a HTTP request body.
| public abstract array|object parse ( string $rawBody, string $contentType ) | ||
| $rawBody | string | The raw HTTP request body. |
| $contentType | string | The content type specified for the request body. |
| return | array|object | Parameters parsed from the request body |
|---|---|---|
public function parse($rawBody, $contentType);
Signup or Login in order to comment.