parse() public method
Parses a HTTP request body.
| public 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 |
| throws | yii\web\BadRequestHttpException |
if the body contains invalid json and $throwException is |
Please login to continue.