Once we run the program, the HTTP server will start locally listening on port 8080, and accessing http://localhost:8080/, http://localhost:8080/post, and http://localhost:8080/hello/foo from a browser or command line will produce the message defined in the corresponding handler definition. For example, execute http://localhost:8080/ from the command line, as follows:
$ curl -X GET -i http://localhost:8080/
This will give us the following response from the server:
We could also execute http://localhost:8080/hello/foo from the command line, as follows:
$ curl -X GET -i http://localhost:8080/hello/foo
This will give us the following ...