Deprecated Request::remote_endpoint_address() and Request::remote_endpoint_port()

This commit is contained in:
eidheim 2019-09-17 10:52:40 +02:00
commit a1d8282918
5 changed files with 20 additions and 8 deletions

View file

@ -89,7 +89,7 @@ int main() {
// Responds with request-information
server.resource["^/info$"]["GET"] = [](shared_ptr<HttpServer::Response> response, shared_ptr<HttpServer::Request> request) {
stringstream stream;
stream << "<h1>Request from " << request->remote_endpoint_address() << ":" << request->remote_endpoint_port() << "</h1>";
stream << "<h1>Request from " << request->remote_endpoint().address().to_string() << ":" << request->remote_endpoint().port() << "</h1>";
stream << request->method << " " << request->path << " HTTP/" << request->http_version;