Add read, async_read for message_headers:

fix #172, fix #173

This provides overloads of read and async_read to allow
reading message_headers objects.
This commit is contained in:
Vinnie Falco
2017-07-20 08:12:13 -07:00
parent 8035dac88c
commit 1eb673dd7d
5 changed files with 385 additions and 11 deletions
+4 -2
View File
@@ -106,8 +106,10 @@ parse(SyncReadStream& stream,
This operation is implemented in terms of one or more calls to
the next layer's `async_read_some` function, and is known as a
<em>composed operation</em>. The program must ensure that the
stream performs no other operations until this operation
completes.
stream performs no other operations until this operation completes.
The implementation may read additional octets that lie past the
end of the object being parsed. This additional data is stored
in the stream buffer, which may be used in subsequent calls.
@param stream The stream from which the data is to be read.
The type must support the @b AsyncReadStream concept.