开发者

Flex - HTTPService and gzipped responses?

I have a Flex client making RESTful calls to a webservice using HTTPService. The server is returning JSON responses,开发者_开发知识库 which we would like to compress. Can Flex using HTTPService handle gzip-encoded responses? If so, what steps are required to make it work (e.g., which headers to set, how to decompress, etc.)? If not, can you suggest a simple alternative?

Thanks!


Networking calls in Flex apps go through the browser stack. So it's actually the browser handling the gzip. So as long as the browser supports it (sends the correct accept-type) then it should just work in a Flex app since the response will already be ungzipped before it gets back to the app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜