Skip to content

Instantly share code, notes, and snippets.

@kriszyp
Created March 3, 2011 18:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kriszyp/853195 to your computer and use it in GitHub Desktop.
Save kriszyp/853195 to your computer and use it in GitHub Desktop.
Server response of the future?
HTTP/1.1 200 OK
Content-Type: application/foo+json; # Web applications typically do and should use JSON as the semantic data source
# If your mobile device has an app for "application/foo+json", auto-launch app to handle resource
Link: <http://foo.com/ui.html>; rel="renderer" # HTML page to use to renderer it
Link: <http://foo.com/ui.ipa>; rel="ios.renderer" # Recommended device-specific app for this resource
Link: <http://foo.com/schema>; rel="describedby" # schema describing the JSON structure so that search engines can crawl it
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment