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

Go to the source code of this file.

Namespaces

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

Functions

static bool async_web_server_cpp::hasContentType (const std::vector< HttpHeader > &headers)
 
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)
 
static std::string async_web_server_cpp::sniffContentType (const std::string &filename)
 
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 char async_web_server_cpp::stock_replies::accepted []
 
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::bad_gateway []
 
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_request []
 
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::created []
 
const std::string async_web_server_cpp::status_strings::created = "HTTP/1.0 201 Created\r\n"
 
const char async_web_server_cpp::misc_strings::crlf [] = {'\r', '\n'}
 
const char async_web_server_cpp::stock_replies::forbidden []
 
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::internal_server_error []
 
const std::string async_web_server_cpp::status_strings::internal_server_error
 
const char async_web_server_cpp::stock_replies::moved_permanently []
 
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_temporarily []
 
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::multiple_choices []
 
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::misc_strings::name_value_separator [] = {':', ' '}
 
const char async_web_server_cpp::stock_replies::no_content []
 
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::not_found []
 
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_implemented []
 
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_modified []
 
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::ok [] = ""
 
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::service_unavailable []
 
const std::string async_web_server_cpp::status_strings::service_unavailable = "HTTP/1.0 503 Service Unavailable\r\n"
 
const std::string async_web_server_cpp::status_strings::switching_protocols = "HTTP/1.1 101 Switching Protocols\r\n"
 
const char async_web_server_cpp::stock_replies::unauthorized []
 
const std::string async_web_server_cpp::status_strings::unauthorized = "HTTP/1.0 401 Unauthorized\r\n"
 


async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Tue Mar 1 2022 23:49:06