On Thu, Dec 10, 2009 at 06:23:14PM +0100, Romain François wrote:
> What about then if you want to control the kind of output that is 
> returned back (pb or json). I would then add &encoding=pb or 
> &encoding=json. How do you do this ?
Everything is invented before us [1] :) 
To be fair in my implementation I send response encoded as request.
Request encoding is read from Content-Type header and defaults to PB.

> I don't have any strong opinions. I think the best format is :
> 
> /base/url/{service}?method={method}
> 
> where "service" is the service full name, and "method" the method name 
> within the service.
So we have both URL and query encoding at once :)

                Pavel
--
[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3

--

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.


Reply via email to