8.2.1 Method Inspection 8.2.1方法检查 Once a request is authenticated (or authentication is skipped), the UAS MUST inspect the method of the request. If the UAS recognizes but does not support the method of a request, it MUST generate a 405 (Method Not Allowed) response. Procedures for generating responses are described in Section 8.2.6. The UAS MUST also add an Allow header field to the 405 (Method Not Allowed) response. The Allow header field MUST list the set of methods supported by the UAS generating the message. The Allow header field is presented in Section 20.5. 一旦请求经过身份验证(或跳过身份验证),UAS必须检查请求的方法。如果UAS识别但不支持请求的方法,则必须生成405(方法不允许)响应。第8.2.6节描述了生成响应的程序。UAS还必须将Allow报头字段添加到405(Method Not Allowed)响应中。Allow 报头字段必须列出生成消息的UAS所支持的一组方法。允许报头字段如第20.5节所示。 If the method is one supported by the server, processing continues.
如果该方法是服务器支持的方法,则处理将继续。
文章讨论了在HTTP请求过程中,UAS如何检查请求方法,如遇到不支持的方法会返回405(MethodNotAllowed)响应,并包含Allow头字段列出支持的方法。若方法被服务器支持,则继续处理。
1486

被折叠的 条评论
为什么被折叠?



