removes headers option, includes authorization option
introducing transformUrl option