HttpRequest.headers["token"]=token这边是个什么用法呢
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
1个回答
2015-07-18
展开全部
有headers(String s)这个方法吗?是不是getHeaders(java.lang.String name) ?
getHeaderNames
public java.util.Enumeration getHeaderNames()
Returns an enumeration of all the header names this request contains. If the
request has no headers, this method returns an empty enumeration.
Some servlet containers do not allow do not allow servlets to access headers
using this method, in which case this method returns null
Returns:
an enumeration of all the header names sent with this request; if the
request has no headers, an empty enumeration; if the servlet container does not
allow servlets to use this method, null
getHeaderNames
public java.util.Enumeration getHeaderNames()
Returns an enumeration of all the header names this request contains. If the
request has no headers, this method returns an empty enumeration.
Some servlet containers do not allow do not allow servlets to access headers
using this method, in which case this method returns null
Returns:
an enumeration of all the header names sent with this request; if the
request has no headers, an empty enumeration; if the servlet container does not
allow servlets to use this method, null
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询