Add the request as argument to the function onParseEnd

This allows easier extensibility (e.g. use a custom body parse).