Niklas Keller
51265e4ece
Remove OutputStream from Parser, make it not implementing the interface
2017-06-04 11:40:15 +02:00
Aaron Piotrowski
7543f30fd6
Do not include delimiter in sent string
2017-06-01 00:08:18 -05:00
Aaron Piotrowski
b5d2a8d434
Do not send remaining buffer on end
2017-05-31 23:51:44 -05:00
Aaron Piotrowski
06fc788d32
Revert "Add Parser::getBuffer()"
...
This reverts commit 253aaaf4fa
.
2017-05-29 23:29:19 -05:00
Niklas Keller
da4ca7a60c
Update shared, convert blockquote into note
2017-05-29 21:52:28 +02:00
Niklas Keller
ea135f26d0
Fix chunk size issue in ResourceOutputStream, fixes #14
2017-05-29 17:34:29 +02:00
Niklas Keller
e6750aa6bc
Convert block quote to note
2017-05-29 12:38:42 +02:00
Niklas Keller
75e69e7322
Turn ./docs into a Jekyll site
2017-05-28 19:24:13 +02:00
Niklas Keller
2ecbf8aa8b
Respect chunk size for ResourceOutputStream, document resource streams
2017-05-25 18:12:12 +02:00
Niklas Keller
a27cd0c3db
Make ClosedException final
2017-05-25 17:52:07 +02:00
Niklas Keller
2bf2f8af06
Document compression streams
2017-05-25 17:51:25 +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
6bc8199340
Drop Buffer as per #13 , fixes #13
2017-05-24 18:30:38 +02:00
Niklas Keller
bf1635fa39
Suppress warning for invalid contexts, we throw an exception there
2017-05-22 14:44:36 +02:00
Niklas Keller
eb9394a5da
Make resource streams final
2017-05-22 14:38:39 +02:00
Niklas Keller
c33c2bec61
Make InMemoryStream, IteratorStream and methods of Message final
2017-05-22 14:37:20 +02:00
Niklas Keller
7616029740
Allow options for Zlib streams, fixes #10
2017-05-22 14:35:13 +02:00
Niklas Keller
6b369657a1
Reject non-strings in IteratorStream
2017-05-22 10:41:35 +02:00
Niklas Keller
2049e76771
Use a Producer in the IteratorStream docs
2017-05-22 10:36:19 +02:00
Niklas Keller
75b2f2098c
Fix IteratorStream example to complete the emitter
2017-05-22 10:34:46 +02:00
Niklas Keller
bf2565baa0
Add IteratorStream docs
2017-05-22 10:33:48 +02:00
Niklas Keller
adac8fe7b6
Fix README title
2017-05-22 10:29:30 +02:00
Niklas Keller
782002c2e8
Adjust package description
2017-05-22 10:28:56 +02:00
Niklas Keller
e4686aaa98
Add Niklas Keller as author
2017-05-22 10:27:34 +02:00
Niklas Keller
786d0c1bce
Add README
2017-05-22 10:24:47 +02:00
Niklas Keller
0e6a6abae0
Add InMemoryStream docs
2017-05-22 10:20:55 +02:00
Niklas Keller
d3e3ab1f3d
Add message docs
2017-05-22 10:12:13 +02:00
Niklas Keller
7d57940485
Add implementations to docs
2017-05-22 10:00:11 +02:00
Niklas Keller
253aaaf4fa
Add Parser::getBuffer()
2017-05-22 08:34:38 +02:00
Niklas Keller
7a20d5b177
Add basic documentation
2017-05-17 12:45:35 +02:00
Niklas Keller
2df6b8cde3
Remove unused import
2017-05-17 09:39:32 +02:00
Niklas Keller
0bba99c49c
Add missing foobar.txt.gz
2017-05-17 09:37:15 +02:00
Niklas Keller
34a571cd85
Add basic zlib input stream test
2017-05-17 08:17:15 +02:00
Niklas Keller
9e90d1fa09
Add tests, fix ResourceOutputStream writable check
2017-05-16 23:27:48 +02:00
Niklas Keller
ad249a8fc8
Merge pull request #9 from amphp/message-input-stream
...
Make Message accept an InputStream instead of an Iterator
2017-05-15 19:39:50 +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
Niklas Keller
4f4c9f171c
Fix code style
2017-05-14 14:41:04 +02:00
Niklas Keller
c397a22ac9
Rename Gzip*Stream to Zlib*Stream and allow different encodings
2017-05-14 14:40:32 +02:00
Aaron Piotrowski
ca3ab2dc73
Restore destructor on resource stream
...
Forgot close() needed to be called to free watcher.
2017-05-12 10:27:58 -05:00
Aaron Piotrowski
a37ebef071
Add simple parser example
2017-05-12 09:32:41 -05:00
Aaron Piotrowski
f63b1ec35c
Revert "Update benchmark example"
...
This reverts commit fbf4b2ef64
.
2017-05-12 09:21:39 -05: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
f6e765cea3
Succeed reads with null on closed stream
2017-05-11 23:56:36 -05:00
Aaron Piotrowski
c2eac67b79
Fix close() and make public again
2017-05-11 23:52:15 -05:00
Aaron Piotrowski
fbf4b2ef64
Update benchmark example
2017-05-11 18:14:33 -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
Aaron Piotrowski
abb7c9c6b5
Use back-pressure
2017-05-10 18:04:10 -05:00
Niklas Keller
a66fef9b55
Add InMemoryStream
2017-05-08 11:15:10 +02:00