[http] fix path tree creation
[http] add function for dump http tree