Support for maxBytes and progress events.