Skip to content

Commit

Permalink
Document stream config option in response; and set default.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuswilms committed Jul 29, 2014
1 parent 92c3e49 commit 5cce1b1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action/Request.php
Expand Up @@ -85,9 +85,10 @@ class Request extends \lithium\net\http\Request {
protected $_env = array();

/**
* If POST / PUT data is coming from an input stream (rather than `$_POST`), this specified
* where to read it from.
* If POST, PUT or PATCH data is coming from an input stream (rather than `$_POST`),
* this specified where to read it from.
*
* @see lithium\action\Request::_init()
* @var stream
*/
protected $_stream = null;
Expand Down Expand Up @@ -165,6 +166,9 @@ class Request extends \lithium\net\http\Request {
* - `'auth'` _mixed_: null
* - `'body'` _mixed_: null
* - `'data'` _array_: array()
* - `'stream'` _resource_: Stream to read from in order to get the message
* body when method is POST, PUT or PATCH and data is empty. When not provided
* `php://input` will be used for reading.
* - `'env'` _array_: array()
* - `'globals'` _boolean_: Use global variables for populating
* the request's environment data; defaults to `true`.
Expand All @@ -176,6 +180,7 @@ public function __construct(array $config = array()) {
'env' => array(),
'query' => array(),
'data' => array(),
'stream' => null,
'globals' => true
);
$config += $defaults;
Expand Down

0 comments on commit 5cce1b1

Please sign in to comment.