private function applyChunkEncoding($chunk) { return dechex(strlen($chunk)) . "\r\n" . $chunk . "\r\n"; }