| 656 | } |
| 657 | |
| 658 | void Server::SendHttpNotImplemented(struct mg_connection* connection, |
| 659 | const struct mg_request_info* request_info, |
| 660 | const std::string& body) { |
| 661 | LOG(TRACE) << "Entering Server::SendHttpNotImplemented"; |
| 662 | |
| 663 | std::ostringstream out; |
| 664 | out << "HTTP/1.1 501 Not Implemented\r\n\r\n"; |
| 665 | |
| 666 | mg_write(connection, out.str().c_str(), out.str().size()); |
| 667 | } |
| 668 | |
| 669 | void Server::SendHttpSeeOther(struct mg_connection* connection, |
| 670 | const struct mg_request_info* request_info, |
no test coverage detected