moving httprequest into its own class