convert_content


Description:

protected string convert_content (Bytes content, string content_type)

Convert content based on Content-Type and format property. Uses structured if/else for Content-Type matching (Vala doesn't support string switches). Updates this.format to reflect the actual format used.

Parameters:

content

The content bytes

content_type

The detected Content-Type

Returns:

Converted content as string