[英]Java Spring Boot how to know client receive the response from API
I wanna ask.我想问。 i'm create an API with Java Spring Boot, process then return the response JSON to client, but can i know the client having received the response from the API ?
我正在使用 Java Spring Boot 创建一个 API,处理然后将响应 JSON 返回给客户端,但是我能知道客户端收到了来自 API 的响应吗?
Example, the client hit the API then API process client request but the client cancel hit process before API finish the job, automatically process on API still running untill finish maybe send the response but the client not receive the response because timout or cancel例如,客户端命中API然后API处理客户端请求,但客户端在API完成作业之前取消命中过程,自动处理仍在运行的API直到完成可能发送响应但客户端没有收到响应,因为超时或取消
any advice ?有什么建议吗?
一旦 API 收到请求,客户端终止连接或取消请求,在响应成功发送给客户端之前,您会在 API 端看到一个异常,提示客户端已中止连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.