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.
HTTP(不支持客户端回调机制),在 REST 上做异步服务或通知是困难的。那么我们如何在 REST 中实现长时间运行的事务(通常需要异步和回调支持)?
异步性:您返回 202 Accepted 并带有指向资源的位置,该资源将为他们提供请求的状态。在该资源中,您可能会包含有关何时完成请求的提示。
回调支持:HTTP 并没有真正做到这一点。由客户来处理。