Beast Logo

PrevUpHomeNext

http::async_write

Write a HTTP/1 header asynchronously to a stream.

template<
    class AsyncWriteStream,
    bool isRequest,
    class Fields,
    class WriteHandler>
async_return_type< WriteHandler, void(error_code)>
async_write(
    AsyncWriteStream& stream,
    header< isRequest, Fields > const& msg,
    WriteHandler&& handler);

Write a HTTP/1 message asynchronously to a stream.

template<
    class AsyncWriteStream,
    bool isRequest,
    class Body,
    class Fields,
    class WriteHandler>
async_return_type< WriteHandler, void(error_code)>
async_write(
    AsyncWriteStream& stream,
    message< isRequest, Body, Fields > const& msg,
    WriteHandler&& handler);
Requirements

Header: beast/http/write.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext