对于中断请求,不阻塞但是仍然要花较长时间执行的方法可以轮询中断状态,并在被中断的时候提前返回。
Methods that do not block but that still may take a long time to execute can respect requests for interruption by polling the interrupted status and return early if interrupted.
从命令的输出可以看到,如果获得的状态代码与预期的代码不匹配,将返回一个错误。
As you can see from the output of the command, it only returns an error if it gets a status code that doesn't match what is expected.
因为异常已被处理,所以该事件方法不返回HTTP错误状态代码。
Because the exception has been handled, the event method does not return an HTTP error status code.
应用推荐