Node.js HTTPParser doesn't call some of the callbacks

I'm playing with HTTPParser in Node.js v0.8.15. Unfortunately, some of the callbacks never get called.

For example, the following code invokes only onHeadersComplete. Couldn't manage to make it call onURL, onHeaderField and onHeaderValue.

var
    HTTPParser = process.binding('http_parser').HTTPParser,
    parser = new HTTPParser(HTTPParser.REQUEST),
    request = new Buffer(
        'GET /test HTTP/1.1\r\n' +
        'Host: www.example.com\r\n' +
        'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Firefox/17.0\r\n' +
        'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n' +
        'Accept-Language: en-US,en;q=0.5\r\n' +
        'Accept-Encoding: gzip, deflate\r\n' +
        '\r\n'
    );

parser.onURL = function() {
    console.log('onURL');
}

parser.onHeaderField = function() {
    console.log('onHeaderField');
}

parser.onHeaderValue = function() {
    console.log('onHeaderValue');
}

parser.onHeadersComplete = function() {
    console.log('onHeadersComplete');
}

parser.execute(request, 0, request.length);

What's wrong?

process.binding is only supposed to be used by core node libraries. From my brief reading of the source, the http parser C++ code only exposes a small subset of events (onHeaders, onHeadersComplete, onBody, onMessageComplete) so I believe these are the only events you can latch.

The parser uses some additional callbacks from the parser internally but they are not exposed up to JS land as events.