made it possible to pass in request config
made it possible to pass in http config