MCPcopy Create free account
hub / github.com/boostorg/beast / async_write

Function async_write

include/boost/beast/http/impl/write.hpp:752–772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750 BOOST_BEAST_ASYNC_TPARAM2 WriteHandler>
751BOOST_BEAST_ASYNC_RESULT2(WriteHandler)
752async_write(
753 AsyncWriteStream& stream,
754 serializer<isRequest, Body, Fields>& sr,
755 WriteHandler&& handler)
756{
757 static_assert(is_async_write_stream<
758 AsyncWriteStream>::value,
759 "AsyncWriteStream type requirements not met");
760 static_assert(is_body<Body>::value,
761 "Body type requirements not met");
762 static_assert(is_body_writer<Body>::value,
763 "BodyWriter type requirements not met");
764 return net::async_initiate<
765 WriteHandler,
766 void(error_code, std::size_t)>(
767 detail::run_write_op<AsyncWriteStream>{&stream},
768 handler,
769 detail::serializer_is_done{},
770 &sr,
771 false);
772}
773
774//------------------------------------------------------------------------------
775

Calls

no outgoing calls

Tested by

no test coverage detected