Beast Logo

PrevUpHomeNext

http::read

Read a HTTP/1 header from a stream.

template<
    class SyncReadStream,
    class DynamicBuffer,
    bool isRequest,
    class Fields>
void
read(
    SyncReadStream& stream,
    DynamicBuffer& dynabuf,
    header< isRequest, Fields >& msg);


template<
    class SyncReadStream,
    class DynamicBuffer,
    bool isRequest,
    class Fields>
void
read(
    SyncReadStream& stream,
    DynamicBuffer& dynabuf,
    header< isRequest, Fields >& msg,
    error_code& ec);

Read a HTTP/1 message from a stream.

template<
    class SyncReadStream,
    class DynamicBuffer,
    bool isRequest,
    class Body,
    class Fields>
void
read(
    SyncReadStream& stream,
    DynamicBuffer& dynabuf,
    message< isRequest, Body, Fields >& msg);


template<
    class SyncReadStream,
    class DynamicBuffer,
    bool isRequest,
    class Body,
    class Fields>
void
read(
    SyncReadStream& stream,
    DynamicBuffer& dynabuf,
    message< isRequest, Body, Fields >& msg,
    error_code& ec);
Requirements

Header: beast/http/read.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext