Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要request.getHeader(String value)的 String 参数列表。我已经知道一个是“User-Agent”(例如 request.getHeader("User-Agent") )
同样对于此类其他方法的此类情况,我如何获取此类方法的参数列表。
您可以使用getHeaderNames()。它返回包含Enumeration<java.lang.String>的所有标题名称中的一个request。
Enumeration<java.lang.String>
request