0 關注者

介面 yii\web\RequestParserInterface

實作於yii\web\JsonParser, yii\web\MultipartFormDataParser
自版本起可用2.0
原始碼 https://github.com/yiisoft/yii2/blob/master/framework/web/RequestParserInterface.php

用於將原始請求 body 解析為參數陣列的類別介面。

公共方法

隱藏繼承方法

方法 描述 定義於
parse() 解析 HTTP 請求 body。 yii\web\RequestParserInterface

方法詳情

隱藏繼承方法

parse() public abstract method

解析 HTTP 請求 body。

public abstract array parse ( $rawBody, $contentType )
$rawBody string

原始 HTTP 請求 body。

$contentType string

為請求 body 指定的內容類型。

回傳 array

從請求 body 解析的參數

                public function parse($rawBody, $contentType);