Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit d0f1765

Browse files
committed
Added CHANGELOG for #90
1 parent f860801 commit d0f1765

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)