Beast Logo

PrevUpHomeNext

http::write

Write a HTTP/1 header to a stream.

template<
    class SyncWriteStream,
    bool isRequest,
    class Fields>
void
write(
    SyncWriteStream& stream,
    header< isRequest, Fields > const& msg);


template<
    class SyncWriteStream,
    bool isRequest,
    class Fields>
void
write(
    SyncWriteStream& stream,
    header< isRequest, Fields > const& msg,
    error_code& ec);

Write a HTTP/1 message to a stream.

template<
    class SyncWriteStream,
    bool isRequest,
    class Body,
    class Fields>
void
write(
    SyncWriteStream& stream,
    message< isRequest, Body, Fields > const& msg);

Write a HTTP/1 message on a stream.

template<
    class SyncWriteStream,
    bool isRequest,
    class Body,
    class Fields>
void
write(
    SyncWriteStream& stream,
    message< isRequest, Body, Fields > const& msg,
    error_code& ec);
Requirements

Header: beast/http/write.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext