0 follower

インターフェース yii\web\RequestParserInterface

実装クラスyii\web\JsonParser, yii\web\MultipartFormDataParser
利用可能バージョン2.0
ソースコード https://github.com/yiisoft/yii2/blob/master/framework/web/RequestParserInterface.php

生のリクエストボディをパラメータ配列にパースするクラスのためのインターフェース。

公開メソッド

継承メソッドを隠す

メソッド 説明 定義元
parse() HTTPリクエストボディをパースします。 yii\web\RequestParserInterface

メソッドの詳細

継承メソッドを隠す

parse() public abstract method

HTTPリクエストボディをパースします。

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

生のHTTPリクエストボディ。

$contentType string

リクエストボディに指定されたコンテンツタイプ。

戻り値 array

リクエストボディからパースされたパラメータ

                public function parse($rawBody, $contentType);