Пример #1
0
std::ostream& operator<<(std::ostream& out, http_error_code ec)
{
    return out << reason_phrase(ec);
}
Пример #2
0
/*
 * send_status - send status to client
 */
void send_status(FILE *client, int code){
    fprintf(client, "HTTP/1.1 %d %s", code, reason_phrase(code));
    actualise_stats(code);
}
Пример #3
0
std::string status_line(const std::string& version, http_error_code ec)
{
	return "HTTP/" + version + " " + tools::as_string( static_cast< int >( ec ) ) + " " + reason_phrase(ec) + "\r\n";
}