The only way to avoid HTTP errors is to prevent clients from connecting to the server.
为了避免HTTP错误的唯一方法是防止客户端连接到服务器。
If there was no callback function provided, the send function blocks and waits until the server response arrives, or else it raises HTTP errors.
如果没有提供回调函数,那么send函数阻塞,一直等到服务器响应到达,或者引发HTTP错误。
But they make sure that the business logic is invoked, that the controller logic doesn't detect any errors, and that the right HTTP response is achieved.
但是它们可以保证调用了业务逻辑,保证控制器逻辑没有检测到任何错误,并保证得到了正确的HTTP响应。
应用推荐