A.29. HTTP 方法的默认行为
与之前的 JBoss EAP 发行版中的 Web
子系统相比,JBoss EAP 7.3 中的 undertow
子系统具有 HTTP 方法的不同默认行为。下表概述了 JBoss EAP 7.3 中的默认行为。
表 A.99. HTTP 方法默认行为
HTTP 方法 | JSP | 静态 HTML | 按文件处理程序的静态 HTML |
---|---|---|---|
GET | 确定 | 确定 | 确定 |
POST | 确定 | NOT_ALLOWED | 确定 |
HEAD | 确定 | 确定 | 确定 |
PUT | NOT_ALLOWED | NOT_ALLOWED | NOT_ALLOWED |
TRACE | NOT_ALLOWED | NOT_ALLOWED | NOT_ALLOWED |
删除 | NOT_ALLOWED | NOT_ALLOWED | NOT_ALLOWED |
选项 | NOT_ALLOWED | 确定 | NOT_ALLOWED |
对于 servlets,默认行为取决于其实施,但 TRACE
方法除外,其默认行为为 NOT_ALLOWED
。