Extract header.

This commit is contained in:
Miao Jiang 2013-05-25 16:00:35 +08:00
parent b77ee78afd
commit 8de753eec9
11 changed files with 108 additions and 35 deletions

View file

@ -1,4 +1,4 @@
// Generated by ToffeeScript 1.6.2
// Generated by ToffeeScript 1.6.2-5
(function() {
var Curl, curls, e, id, m, p,
__hasProp = {}.hasOwnProperty;
@ -102,6 +102,11 @@
return callback.call(_this, chunk);
};
break;
case 'header':
this.on_header = function(chunk) {
return callback.call(_this, chunk);
};
break;
case 'error':
this.on_error = function(e) {
delete curls[_this.id];