icesnakejin / google-api-objectivec-client

Automatically exported from code.google.com/p/google-api-objectivec-client
0 stars 0 forks source link

Underlining Connection Timeout(s) and RPC nature of calls #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently when using the objective c client agains the new gmail api I've 
noticed that the actual calls made are of an RPC nature and not RESTful.  This 
means every request is a POST even though when I get a message by ID I would 
expect the http method to be a get.  Unfortunately there is a bug or weird 
implementation with NSURLRequest such that any POST has a default timeout value 
of 240 and it can not be overwritten.  Can you add a timeout value to the calls 
we make and cancel them with an internal timmer?  Also, why use the convention 
of making everything an RPC call? 

Original issue reported on code.google.com by andr...@hothouselabs.com on 13 Aug 2014 at 10:06

GoogleCodeExporter commented 9 years ago
JSON RPC allowed us to support batch before there was server support for batch 
on RESTful apis.

As far as the timeout, there is a timeout property on the FetcherService, and 
the FetcherService is available on the your Service object.

Original comment by thomasvl@google.com on 15 Aug 2014 at 1:40