adding support to configure the memory limit for chunking http requests

can configure the memory limit for chunking http requests in memory instead of using body consumer.