refactored: added RequestInfo which has functions to access http request
information.