Skip to content

Instantly share code, notes, and snippets.

@iggymacd
Created February 12, 2012 17:07
Show Gist options
  • Save iggymacd/1809662 to your computer and use it in GitHub Desktop.
Save iggymacd/1809662 to your computer and use it in GitHub Desktop.
void parse(HTTPRequest req, var cb){
if(_testingHandler != null){
_testingHandler(data);
return;
}
writeHeaders(req.headers);
_callBack = cb;
print('parsing data');
//_callBack();
req.dataReceived = dataReceivedHandler;
req.dataEnd = (String data){
print('dataEnd ...' + data);
cb();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment