You have to use asterisk in mapping (similar to Servlets) to see the correct pathInfo value. For example please use the following mapping:
httpServer.getServerConfiguration().addHttpHandler(
new HandlerImpl(), "/test/myhandler/*");
and make a request to http://localhost:8080/test/myhandler/foo/bar
and the result will be:
/foo/bar
/test
/test/myhandler/foo/bar
/myhandler