RestKit/RestKit — Issue #582: Add Support for Mapping Headers
Author: blakewatters
Created: 2012-03-06 03:48:53+00:00
State: open
Labels: Feature, Object Mapping

I would like to make the URL and HTTP headers available for object mapping. While working with the Github API, I've seen that they use Link headers to express pagination URLs. By making the headers themselves mappable, this becomes a great way to pass around associated link data outside of the payload. I am thinking that the URL and headers will be added to the parsed JSON at special (possibly configurable) keyPaths. i.e. __restkit.url __restkit.headers or something. Then it can be mapped using the typical OM configuration syntax.