为了让它具体化,我有这样的想法:
% URLREAD2L带有监听器
[input, extras, listner] = urlread2l(url, method, body, headers)
集(listner,“回调”,@onstream)
或者,更好的,作为varargin urlread的一部分:
[input, extras, listner] = urlread2l(url, method, body, headers,...
“回调”,@onstream)