Namespaces | Functions | Variables
http_reply.cpp File Reference
#include <boost/lexical_cast.hpp>
#include <fstream>
#include "async_web_server_cpp/http_reply.hpp"
Include dependency graph for http_reply.cpp:

Go to the source code of this file.

Namespaces

namespace  async_web_server_cpp
namespace  async_web_server_cpp::misc_strings
namespace  async_web_server_cpp::status_strings
namespace  async_web_server_cpp::stock_replies

Functions

static bool async_web_server_cpp::serveFromFile (HttpReply::status_type status, const std::string &filename, const std::vector< HttpHeader > &headers, boost::shared_ptr< HttpConnection > connection)
boost::asio::const_buffer async_web_server_cpp::status_strings::to_buffer (HttpReply::status_type status)
std::string async_web_server_cpp::stock_replies::to_string (HttpReply::status_type status)

Variables

const std::string async_web_server_cpp::status_strings::accepted = "HTTP/1.0 202 Accepted\r\n"
const char async_web_server_cpp::stock_replies::accepted [] = "</html>"
const std::string async_web_server_cpp::status_strings::bad_gateway = "HTTP/1.0 502 Bad Gateway\r\n"
const char async_web_server_cpp::stock_replies::bad_gateway [] = "</html>"
const std::string async_web_server_cpp::status_strings::bad_request = "HTTP/1.0 400 Bad Request\r\n"
const char async_web_server_cpp::stock_replies::bad_request [] = "</html>"
const std::string async_web_server_cpp::status_strings::created = "HTTP/1.0 201 Created\r\n"
const char async_web_server_cpp::stock_replies::created [] = "</html>"
const char async_web_server_cpp::misc_strings::crlf [] = {'\r', '\n'}
const std::string async_web_server_cpp::status_strings::forbidden = "HTTP/1.0 403 Forbidden\r\n"
const char async_web_server_cpp::stock_replies::forbidden [] = "</html>"
const std::string async_web_server_cpp::status_strings::internal_server_error = "HTTP/1.0 500 Internal Server Error\r\n"
const char async_web_server_cpp::stock_replies::internal_server_error [] = "</html>"
const std::string async_web_server_cpp::status_strings::moved_permanently = "HTTP/1.0 301 Moved Permanently\r\n"
const char async_web_server_cpp::stock_replies::moved_permanently [] = "</html>"
const std::string async_web_server_cpp::status_strings::moved_temporarily = "HTTP/1.0 302 Moved Temporarily\r\n"
const char async_web_server_cpp::stock_replies::moved_temporarily [] = "</html>"
const std::string async_web_server_cpp::status_strings::multiple_choices = "HTTP/1.0 300 Multiple Choices\r\n"
const char async_web_server_cpp::stock_replies::multiple_choices [] = "</html>"
const char async_web_server_cpp::misc_strings::name_value_separator [] = {':', ' '}
const std::string async_web_server_cpp::status_strings::no_content = "HTTP/1.0 204 No Content\r\n"
const char async_web_server_cpp::stock_replies::no_content [] = "</html>"
const std::string async_web_server_cpp::status_strings::not_found = "HTTP/1.0 404 Not Found\r\n"
const char async_web_server_cpp::stock_replies::not_found [] = "</html>"
const std::string async_web_server_cpp::status_strings::not_implemented = "HTTP/1.0 501 Not Implemented\r\n"
const char async_web_server_cpp::stock_replies::not_implemented [] = "</html>"
const std::string async_web_server_cpp::status_strings::not_modified = "HTTP/1.0 304 Not Modified\r\n"
const char async_web_server_cpp::stock_replies::not_modified [] = "</html>"
const std::string async_web_server_cpp::status_strings::ok = "HTTP/1.0 200 OK\r\n"
const char async_web_server_cpp::stock_replies::ok [] = ""
const std::string async_web_server_cpp::status_strings::service_unavailable = "HTTP/1.0 503 Service Unavailable\r\n"
const char async_web_server_cpp::stock_replies::service_unavailable [] = "</html>"
const std::string async_web_server_cpp::status_strings::switching_protocols = "HTTP/1.0 101 Switching Protocols\r\n"
const std::string async_web_server_cpp::status_strings::unauthorized = "HTTP/1.0 401 Unauthorized\r\n"
const char async_web_server_cpp::stock_replies::unauthorized [] = "</html>"


async_web_server_cpp
Author(s): Mitchell Wills
autogenerated on Fri Mar 4 2016 11:30:14