yii\web\RequestParserInterface - Yii2 类参考手册

Interface yii\web\RequestParserInterface

Implemented byyii\web\JsonParser, yii\web\MultipartFormDataParser
Available since version2.0

Interface for classes that parse the raw request body into a parameters array.

Public Methods

隐藏继承的方法 Hide inherited methods

方法 Method简介 Description定义在 Defined By
parse() Parses a HTTP request body. yii\web\RequestParserInterface

方法详情 Method Details

parse() public abstract method

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