| // Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com) |
| // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| #include <boost/asio.hpp> |
| /// A reply to be sent to a client. |
| /// The status of the reply. |
| internal_server_error = 500, |
| service_unavailable = 503 |
| /// The headers to be included in the reply. |
| std::vector<header> headers; |
| /// The content to be sent in the reply. |
| /// Convert the reply into a vector of buffers. The buffers do not own the |
| /// underlying memory blocks, therefore the reply object must remain valid and |
| /// not be changed until the write operation has completed. |
| std::vector<boost::asio::const_buffer> to_buffers(); |
| static reply stock_reply(status_type status); |