viezel / napp.alloy.adapter.restapi

RestAPI Sync Adapter for Titanium Alloy Framework
197 stars 102 forks source link

Allow Headers to be a Function #73

Closed dawsontoth closed 9 years ago

dawsontoth commented 9 years ago

What if we make things more flexible by allowing a function to be passed for config.headers? This is useful if you're generating a lot of models, and want to allow the headers to change along the way without having to update every model.

viezel commented 9 years ago

Thats great. let do that :)