HTML ping 请求的响应是什么

What is the response to an HTML ping request

我了解到,HTML 锚标签也可以带有 ping resource url,例如

<a href="https://example.com" ping="http://tracking.example.com/" >Website</a>

这将向 ping 的目标异步发送 post 请求。

但是 ping 目标应该用什么来响应?

浏览器应该如何处理响应(如果有)?

ping 目标响应根本不重要。 source

User agents must ignore any entity bodies returned in the responses. User agents may close the connection prematurely once they start receiving a response body.

因此您可以发送一个空的 204 无内容 响应。