Commit 3a7ed9b1 by Jin Hu

Added yii\web\Request::setRawBody()

parent c3c6e43c
...@@ -336,6 +336,15 @@ class Request extends \yii\base\Request ...@@ -336,6 +336,15 @@ class Request extends \yii\base\Request
return $this->_rawBody; return $this->_rawBody;
} }
/**
* Sets the raw HTTP request body, this method is mainly used by test scripts to simulate raw HTTP requests.
* @param $rawBody
*/
public function setRawBody($rawBody)
{
$this->_rawBody = $rawBody;
}
private $_bodyParams; private $_bodyParams;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment