Beast Logo

PrevUpHomeNext

http::resume_context

A functor that resumes a write operation.

using resume_context = std::function< void(void)>;

An rvalue reference to an object of this type is provided by the write implementation to the writer associated with the body of a message being sent.

If it is desired that the writer suspend the write operation (for example, to wait until data is ready), it can take ownership of the resume context using a move. Then, it returns boost::indeterminate to indicate that the write operation should suspend. Later, the calling code invokes the resume function and the write operation continues from where it left off.

Requirements

Header: beast/http/resume_context.hpp

Convenience header: beast/http.hpp


PrevUpHomeNext