This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,17 @@ All notable changes to this project will be documented in this file, in reverse
88
99- [ #88 ] ( https://github.com/zendframework/zend-diactoros/pull/88 ) updates the
1010 ` SapiEmitter ` to emit a ` Content-Length ` header with the content length as
11- reported by the response body stream.
11+ reported by the response body stream, assuming that
12+ ` StreamInterface::getSize() ` returns an integer.
1213- [ #77 ] ( https://github.com/zendframework/zend-diactoros/pull/77 ) adds a new
1314 response type, ` Zend\Diactoros\Response\TextResponse ` , for returning plain
1415 text responses. By default, it sets the content type to `text/plain;
1516 charset=utf-8` ; per the other response types, the signature is ` new
1617 TextResponse($text, $status = 200, array $headers = [ ] `.
18+ - [ #90 ] ( https://github.com/zendframework/zend-diactoros/pull/90 ) adds a new
19+ ` Zend\Diactoros\CallbackStream ` , allowing you to back a stream with a PHP
20+ callable (such as a generator) to generate the message content. Its
21+ constructor accepts the callable: ` $stream = new CallbackStream($callable); `
1722
1823### Deprecated
1924
You can’t perform that action at this time.
0 commit comments