1

我正在查看流星示例应用程序。我真的只是在玩。我如何能够将自定义 http 标头添加到页面(例如排行榜示例)?

编辑:我没有使用 Apache 或 Nginx 我使用流星(meteor.com)它有自己的内置服务器

4

2 回答 2

0

我不知道您要做什么,但是如果您想一直添加标题,请尝试...

NGINX: http ://www.cyberciti.biz/faq/nginx-send-custom-http-headers/

APACHE:http ://httpd.apache.org/docs/2.0/mod/mod_headers.html

于 2012-06-04T17:20:30.607 回答
0

HTTP 方法接受标头的字典对象,例如:

        HTTP.call(method,route,{
          headers:{
              "Content-Type":"application/json"
          }
        })
于 2016-02-12T21:33:55.030 回答