Beast Logo

PrevUpHomeNext

http::read

Read an HTTP/1 message from a stream.

template<
    class SyncReadStream,
    class DynamicBuffer,
    bool isRequest,
    bool isDirect,
    class Derived>
void
read(
    SyncReadStream& stream,
    DynamicBuffer& buffer,
    basic_parser< isRequest, isDirect, Derived >& parser);


template<
    class SyncReadStream,
    class DynamicBuffer,
    bool isRequest,
    bool isDirect,
    class Derived>
void
read(
    SyncReadStream& stream,
    DynamicBuffer& buffer,
    basic_parser< isRequest, isDirect, Derived >& parser,
    error_code& ec);


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

Read a HTTP/1 message from a stream.

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

Header: beast/http/read.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext