| public function testToLargeBody() | ||
| { | ||
| $size = $this->iniMaxPostSize() + 1; | ||
| $stream = new BufferStream($size); |
|
|
||
| if ($size === null) { | ||
| return new Response(411, array('Content-Type' => 'text/plain'), 'No Content-Length header given'); | ||
| } |
| { | ||
| private $sizeLimit; | ||
|
|
||
| public function __construct($sizeLimit = null) |
| use React\Stream\ReadableStreamInterface; | ||
| use RingCentral\Psr7\BufferStream; | ||
|
|
||
| final class Buffer |
| { | ||
| private $sizeLimit; | ||
|
|
||
| public function __construct($sizeLimit = null) |
| public function testToLargeBody() | ||
| { | ||
| $size = $this->iniMaxPostSize() + 1; | ||
| $stream = new BufferStream($size); |
|
|
||
| if ($size === null) { | ||
| return new Response(411, array('Content-Type' => 'text/plain'), 'No Content-Length header given'); | ||
| } |
Closed
jsor
changed the title
Buffer Middleware
RequestBodyBuffer Middleware
jsor approved these changes Sep 10, 2017
clue approved these changes Sep 11, 2017
clue
changed the title
RequestBodyBuffer Middleware
Support buffering request body (RequestBodyBufferMiddleware)
This was referenced
Sep 12, 2017Merged
Closed
Closed
This was referenced
Sep 19, 2017Closed
Merged
clue
mentioned this pull request
Closed