This is my first one of these. I apologize in advance if I made
any errors.
* Description *
gadgets.io.makeRequest() does not currently return any of the response
headers to the gadget. This makes it impossible to maintain any data
(i.e. a session) between requests. gadgets.io.makeRequest() currently
supports setting request headers. This proposal is to add an
additional field to the response object called “headers” that contains
an array of well-known response headers.
* Modification to current spec *
I can’t find anywhere in the spec where the response object passed to
the makeRequest() callback is defined. The only language I’ve seen is
here:
http://sites.google.com/site/opensocialdraft/Home/gadgets-api-specification
where it says "The makeRequest() callback parameter is passed a
javascript object with several OAuth-specific fields in addition to
the normal values returned."
So, I guess the addition to the spec is:
3.2.3 Processing Response Headers
The container MUST assign an array to the response object called
“headers” that contains an entry for each well-known HTTP response
header returned from the makeRequest() URL. The well-known reponse
headers are, but not limited to:
* server
* set-cookie
* pragma
* date
* server
* expires
* cache-control
* Discussion *
http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/51b016b80e9d21e6?pli=1