| Home | Libraries | People | FAQ | More

#### http::async_read

Read a complete message from a stream asynchronously using a parser.

    template<
        class AsyncReadStream,
        class DynamicBuffer,
        bool isRequest,
        class Derived,
        class ReadHandler>
    DEDUCED
    async_read(
        AsyncReadStream& stream,
        DynamicBuffer& buffer,
        basic_parser< isRequest, Derived >& parser,
        ReadHandler&& handler);
      » more...

Read a complete message from a stream asynchronously.

    template<
        class AsyncReadStream,
        class DynamicBuffer,
        bool isRequest,
        class Body,
        class Allocator,
        class ReadHandler>
    DEDUCED
    async_read(
        AsyncReadStream& stream,
        DynamicBuffer& buffer,
        message< isRequest, Body, basic_fields< Allocator >>& msg,
        ReadHandler&& handler);
      » more...