/** * Performs the decoding. Decodes the body string passed to it * If it finds certain content-types it will call itself in a * recursive fashion * * @param string Header section * @param string Body section * * @return object Results of decoding process */ function _decode($headers, $body, $default_ctype = 'text/plain') { $struct = parent::_decode($headers, $body, $default_ctype); $struct->raw = array('headers' => $headers, 'body' => $body); return $struct; }