Deprecated Request::remote_endpoint_address() and Request::remote_endpoint_port()
This commit is contained in:
parent
da7eee64a8
commit
a1d8282918
5 changed files with 20 additions and 8 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue