further implementation on php module, request and response body stream handling