Closed GoogleCodeExporter closed 9 years ago
After browsing the source code here at length, I've come up with:
((GDataRequestFactory) entry.Service.RequestFactory).CustomHeaders.Add(
"X-Redirect-Calendar-Shard: true" );
Is this correct (it appears to work at first sight).
Original comment by arnt.wit...@gmail.com
on 21 Jan 2010 at 10:53
The custom headers property is exactly for that purpose: if you need to send a
custom header, because either a
service suddenly demands one, or for any other reason.
Original comment by fman...@gmail.com
on 1 Feb 2010 at 8:51
Ok, I understand. 2 comments however:
- how to add headers was impossible to find in the docs or on the web. I hope
this
issue can now help others.
- I guess the design of the libraries is to be as light as possible, so the
server
code can change and the libraries won't have to? (But the apps using the
libraries
would still need to change.) Because to me, the purpose of having such a library
seems to be to shield its users from having to know that if syncevent!=null you
need
to add a header and where to add it... So I still think that having the library
add
it when needed would be helpful to every one.
Original comment by arnt.wit...@gmail.com
on 1 Feb 2010 at 7:12
Original issue reported on code.google.com by
arnt.wit...@gmail.com
on 21 Jan 2010 at 10:06