std::ostream& operator<<(std::ostream& out, http_error_code ec) { return out << reason_phrase(ec); }
/* * 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); }
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"; }