【问题标题】:Send the compressed json data from Ruby on Rails to android app将压缩的 json 数据从 Ruby on Rails 发送到 android 应用程序
【发布时间】:2013-11-26 06:17:23
【问题描述】:

我正在向 android 请求 api 以获取 json 数据。有没有办法将压缩的 json 数据发送到 Android 应用程序? 现在我们正在使用下面的代码来发送数据

render :json => @rules

【问题讨论】:

标签: ruby-on-rails ruby json


【解决方案1】:

压缩的json数据是什么意思?您可以在 apache/nginx 层上 gzip 压缩您的响应。

http://wiki.nginx.org/HttpGzipModule

【讨论】:

    猜你喜欢
    • 2019-09-11
    • 2018-02-04
    • 2012-05-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多