如何中止 RESTBuilder 发起的连接请求与调用任务
中止 RESTBuilder 调用
出于多种原因,我们需要中止该 RESTBuilder 调用,相关调用代码示例如下:
RESTBuilder.PUT(url) .file(file, CONF["fileDownloadDirectory"] + file) .callback( function (err, res, output) { console.log(output.status); } );
你可以给上述RESTBuilder实例绑定中止方法,在需要终止请求的时机主动调用即可生效。
内容的提问来源于stack exchange,提问作者Subha Poduri
相关产品推荐
相关产品推荐

