Beast Logo

PrevUpHomeNext

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>
void-or-deduced
async_read(
    AsyncReadStream& stream,
    DynamicBuffer& buffer,
    basic_parser< isRequest, Derived >& parser,
    ReadHandler&& handler);

Read a complete message from a stream asynchronously.

template<
    class AsyncReadStream,
    class DynamicBuffer,
    bool isRequest,
    class Body,
    class Allocator,
    class ReadHandler>
void-or-deduced
async_read(
    AsyncReadStream& stream,
    DynamicBuffer& buffer,
    message< isRequest, Body, basic_fields< Allocator >>& msg,
    ReadHandler&& handler);

PrevUpHomeNext