Functions | Variables
async_web_server_cpp::stock_replies Namespace Reference

Functions

std::string to_string (HttpReply::status_type status)
 

Variables

const char accepted []
 
const char bad_gateway []
 
const char bad_request []
 
const char created []
 
const char forbidden []
 
const char internal_server_error []
 
const char moved_permanently []
 
const char moved_temporarily []
 
const char multiple_choices []
 
const char no_content []
 
const char not_found []
 
const char not_implemented []
 
const char not_modified []
 
const char ok [] = ""
 
const char service_unavailable []
 
const char unauthorized []
 

Function Documentation

◆ to_string()

std::string async_web_server_cpp::stock_replies::to_string ( HttpReply::status_type  status)

Definition at line 176 of file http_reply.cpp.

Variable Documentation

◆ accepted

const char async_web_server_cpp::stock_replies::accepted[]
Initial value:
=
"<html>"
"<head><title>Accepted</title></head>"
"<body><h1>202 Accepted</h1></body>"
"</html>"

Definition at line 105 of file http_reply.cpp.

◆ bad_gateway

const char async_web_server_cpp::stock_replies::bad_gateway[]
Initial value:
=
"<html>"
"<head><title>Bad Gateway</title></head>"
"<body><h1>502 Bad Gateway</h1></body>"
"</html>"

Definition at line 165 of file http_reply.cpp.

◆ bad_request

const char async_web_server_cpp::stock_replies::bad_request[]
Initial value:
=
"<html>"
"<head><title>Bad Request</title></head>"
"<body><h1>400 Bad Request</h1></body>"
"</html>"

Definition at line 135 of file http_reply.cpp.

◆ created

const char async_web_server_cpp::stock_replies::created[]
Initial value:
=
"<html>"
"<head><title>Created</title></head>"
"<body><h1>201 Created</h1></body>"
"</html>"

Definition at line 100 of file http_reply.cpp.

◆ forbidden

const char async_web_server_cpp::stock_replies::forbidden[]
Initial value:
=
"<html>"
"<head><title>Forbidden</title></head>"
"<body><h1>403 Forbidden</h1></body>"
"</html>"

Definition at line 145 of file http_reply.cpp.

◆ internal_server_error

const char async_web_server_cpp::stock_replies::internal_server_error[]
Initial value:
=
"<html>"
"<head><title>Internal Server Error</title></head>"
"<body><h1>500 Internal Server Error</h1></body>"
"</html>"

Definition at line 155 of file http_reply.cpp.

◆ moved_permanently

const char async_web_server_cpp::stock_replies::moved_permanently[]
Initial value:
=
"<html>"
"<head><title>Moved Permanently</title></head>"
"<body><h1>301 Moved Permanently</h1></body>"
"</html>"

Definition at line 120 of file http_reply.cpp.

◆ moved_temporarily

const char async_web_server_cpp::stock_replies::moved_temporarily[]
Initial value:
=
"<html>"
"<head><title>Moved Temporarily</title></head>"
"<body><h1>302 Moved Temporarily</h1></body>"
"</html>"

Definition at line 125 of file http_reply.cpp.

◆ multiple_choices

const char async_web_server_cpp::stock_replies::multiple_choices[]
Initial value:
=
"<html>"
"<head><title>Multiple Choices</title></head>"
"<body><h1>300 Multiple Choices</h1></body>"
"</html>"

Definition at line 115 of file http_reply.cpp.

◆ no_content

const char async_web_server_cpp::stock_replies::no_content[]
Initial value:
=
"<html>"
"<head><title>No Content</title></head>"
"<body><h1>204 Content</h1></body>"
"</html>"

Definition at line 110 of file http_reply.cpp.

◆ not_found

const char async_web_server_cpp::stock_replies::not_found[]
Initial value:
=
"<html>"
"<head><title>Not Found</title></head>"
"<body><h1>404 Not Found</h1></body>"
"</html>"

Definition at line 150 of file http_reply.cpp.

◆ not_implemented

const char async_web_server_cpp::stock_replies::not_implemented[]
Initial value:
=
"<html>"
"<head><title>Not Implemented</title></head>"
"<body><h1>501 Not Implemented</h1></body>"
"</html>"

Definition at line 160 of file http_reply.cpp.

◆ not_modified

const char async_web_server_cpp::stock_replies::not_modified[]
Initial value:
=
"<html>"
"<head><title>Not Modified</title></head>"
"<body><h1>304 Not Modified</h1></body>"
"</html>"

Definition at line 130 of file http_reply.cpp.

◆ ok

const char async_web_server_cpp::stock_replies::ok[] = ""

Definition at line 99 of file http_reply.cpp.

◆ service_unavailable

const char async_web_server_cpp::stock_replies::service_unavailable[]
Initial value:
=
"<html>"
"<head><title>Service Unavailable</title></head>"
"<body><h1>503 Service Unavailable</h1></body>"
"</html>"

Definition at line 170 of file http_reply.cpp.

◆ unauthorized

const char async_web_server_cpp::stock_replies::unauthorized[]
Initial value:
=
"<html>"
"<head><title>Unauthorized</title></head>"
"<body><h1>401 Unauthorized</h1></body>"
"</html>"

Definition at line 140 of file http_reply.cpp.



async_web_server_cpp
Author(s): Mitchell Wills , Russel Toris
autogenerated on Mon Feb 28 2022 21:54:08