Niklas Keller
4777508637
Fail streaming messages correctly on read failures
...
Fixes #18 .
2017-06-28 11:35:12 +02:00
Niklas Keller
21945b888f
Make Parser + PendingReadError final, add explicit note about extension to Message
2017-05-25 17:30:53 +02:00
Niklas Keller
c33c2bec61
Make InMemoryStream, IteratorStream and methods of Message final
2017-05-22 14:37:20 +02:00
Niklas Keller
71745c6105
Make Message accept an InputStream instead of an Iterator
...
The purpose of Message is to allow streaming and buffering of an
InputStream with a simple API. Before this commit, Message served a
second purpose: Converting an Amp\Iterator to an InputStream. This has
been separated to allow ZlibInputStream and other InputStreams to be
used as Message. Converting an Amp\Iterator to an InputStream is now
possible using the new IteratorStream class.
2017-05-14 16:40:42 +02:00
Aaron Piotrowski
e7f7326363
PendingReadException → PendingReadError
...
Consecutive reads is a coding error, so it should be an instance of Error.
2017-05-12 00:06:07 -05:00
Aaron Piotrowski
cfbf25e3b5
Remove close() from interfaces
2017-05-11 18:08:45 -05:00
Bob Weinand
98bbffb48f
Fix Message::read() when end is reached before call to read()
2017-05-11 16:33:00 +02:00
Aaron Piotrowski
11a92648d1
Revert IteratorStream name to Message
2017-05-10 18:20:34 -05:00
Niklas Keller
bf90335bb6
Major API change + merged Reader and Writer from amphp/socket
2017-04-30 08:33:16 +02:00
Niklas Keller
16fc80ae3b
Update and fix php-cs-fixer and code style
2017-04-26 08:27:52 +02:00
Aaron Piotrowski
b1c3b9ce96
Update docblock notes
2017-04-14 18:08:31 -05:00
Aaron Piotrowski
5d7d0c97d2
Listener → StreamIterator
2017-04-14 18:06:18 -05:00
Aaron Piotrowski
b0c9dcf839
wait() → advance()
2017-04-14 17:52:22 -05:00
Aaron Piotrowski
7cc313a633
Drop extending Promise
2017-04-13 09:04:56 -05:00
Aaron Piotrowski
5e250f7c79
Refactor ReadableStream and Message
2017-04-12 00:43:48 -05:00
Aaron Piotrowski
9ad62cae84
Remove final from Message
2017-04-11 19:17:44 -05:00
Aaron Piotrowski
c3dc509e5c
Add readAll(); succeed delimiter-based reads on end
2017-04-10 23:58:24 -05:00
Aaron Piotrowski
f358b7a38b
Add Message
2017-04-04 11:24:15 -05:00