I have used the HTTP server form boost example for creating a server that is accessed for verifying that the application is running. So supposing that the port is 9000, I want to add a path to it, so I can test multiple things. But first I want to add the status, so when I access the localhost:9000/status
page I want to get the informations that are now displayed when accessing the localhost:9000
page.
I have tried some approaches to add a path to the endpoint, or to create a query that has the path included, but I have not manage to do it. The application is crashing with Exception: resolve: Host not found (autoritative)
when accessing the localhost:9000/status
.
I have searched for the path method of the endpoint class, but I couldn't found it (undefined). Shall I include something more?
What is the way of adding the path after the port (like localhost:9000/status
)?