refactored params methods in Request

issue #2043