Beast Logo

PrevUpHomeNext

http::async_read

Read a HTTP/1 header asynchronously from a stream.

template<
    class AsyncReadStream,
    class DynamicBuffer,
    bool isRequest,
    class Body,
    class Fields,
    class ReadHandler>
void-or-deduced
async_read(
    AsyncReadStream& stream,
    DynamicBuffer& dynabuf,
    header< isRequest, Fields >& msg,
    ReadHandler&& handler);

Read a HTTP/1 message asynchronously from a stream.

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

Header: beast/http/read.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext