Re: [whatwg/fetch] Request with GET/HEAD method cannot have body. (#551)

liudonghua123 left a comment (whatwg/fetch#551)

IETF最新发布的RFC10008正式定义了QUERY方法,这是一个安全、幂等且可带请求体的HTTP动词,旨在解决GET的URL长度限制和编码复杂性与POST的非幂等性问题。QUERY方法继承了GET的语义和POST的表达能力,通过请求体传递数据,并使用Content-Type定义数据格式。服务端通过Accept-Query响应头告知支持的查询格式。设计细节包括强制Content-Type、Content-Location和Location头的使用,以及缓存和跨域请求的处理。该方法由Julian Reschke、James Snell和Mike Bishop设计,最终选择了QUERY方法以更好地关联URI查询组件。

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/551#issuecomment-4879899711

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/551/4879899711@github.com>

Received on Friday, 3 July 2026 23:50:28 UTC