issues #997 code review

I added a method to req object which will help to build a absolute uri.