This emitter offers a few changes from the emitters offered by
diactoros:
- It logs headers sent using CakePHP's logging tools.
- Cookies are emitted using setcookie() to not conflict with ext/session
Emit a range of the message body.
protected emitBodyRange ( array $range, Psr\Http\Message\ResponseInterface $response, integer $maxBufferLength ) : void |
$range |
array |
The range data to emit |
$response |
Psr\Http\Message\ResponseInterface |
The response to emit |
$maxBufferLength |
integer |
The chunk size to emit |
리턴 |
void |
|
parseContentRange()
보호된 메소드
Parse content-range header
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.16
protected parseContentRange ( string $header ) : false | array |
$header |
string |
The Content-Range header to parse. |
리턴 |
false | array |
[unit, first, last, length]; returns false if no
content range or an invalid content range is provided |