added support of request compression and chunking