Converter s = delegate(int y){ return y + 1; };
Converter MakeAccumulator() {
int total = 0;
return delegate (int y) {
return total += y;
};
}
var xrequest = new XMLHttpRequest();
xrequest.multipart = true;
xrequest.open("GET","http://www.example.com",false);
xrequest.onload = handleContent;
xrequest.send(null);
header('Content-type: multipart/x-mixed-replace;boundary="rn9012"');
print "--rn9012\\n";
print "Content-type: application/xml\n\n";
print "\n";
print "First Part\n";
print "--rn9012\\n";
flush();
sleep(5);
print "Content-type: application/xml\n\n";
print "\n";
print "Second Part\n";
print "--rn9012--\\n";
?>
http://xulplanet.com/tuto…