protected function _httpChunkedDecode($body) {
		if (stripos($this->headers('Transfer-Encoding'), 'chunked') === false) {
			return $body;
		}
		$stream = fopen('data://text/plain;base64,' . base64_encode($body), 'r');
		stream_filter_append($stream, 'dechunk');
		return trim(stream_get_contents($stream));
	}
protected function _httpChunkedDecode($body) {
		if (stripos($this->headers('Transfer-Encoding'), 'chunked') === false) {
			return $body;
		}
		$stream = fopen('data://text/plain;base64,' . base64_encode($body), 'r');
		stream_filter_append($stream, 'dechunk');
		return trim(stream_get_contents($stream));
	}
protected function _httpChunkedDecode ( $ body ) { if ( stripos ( $ this -> headers ( 'Transfer-Encoding' ) , 'chunked' ) === false ) { return $ body ; } $ stream = fopen ( 'data://text/plain;base64,' . base64_encode ( $ body ) , 'r' ) ; stream_filter_append ( $ stream , 'dechunk' ) ; return trim ( stream_get_contents ( $ stream ) ) ; }
Decodes content bodies transferred with HTTP chunked encoding.

@link http://en.wikipedia.org/wiki/Chunked_transfer_encoding Wikipedia: Chunked encoding
@param string $body A chunked HTTP message body.
@return string Returns the value of `$body` with chunks decoded, but only if the value of the
`Transfer-Encoding` header is set to `'chunked'`. Otherwise, returns `$body`
unmodified.
Decodes content bodies transferred with HTTP chunked encoding .