set_mime_type


Description:

public virtual void set_mime_type (string mime_type)

This sets the data wrapper's MIME type.

It might fail, but you won't know. It will allow you to set Content-Type parameters on the data wrapper, which are meaningless. You should not be allowed to change the MIME type of a data wrapper that contains data, or at least, if you do, it should invalidate the data.

Parameters:

this

a DataWrapper

mime_type

a MIME type




2022 vala-language.org