Swift changes

Argh, what a pain, but yes the config is the only way to pass data through to the handler of the $http call, AFAICT.