axl_bool vortex_profiles_set_mime_type ( VortexCtx ctx,
const char *  uri,
const char *  mime_type,
const char *  transfer_encoding 
)

Allows to configure which is the default mime type to be set for those channels created under the given profile.

Default mime type and content transfer encoding used under beep is:

  • Content-Type: "application/octet-stream"
  • Content-Transfer-Encoding: binary

They are used by default if no other value is set.

The function will perform a local copy of all the values provided on this function, so you could safely unref them once the function had finished.

Parameters
ctxThe context where the operation will be performed.
uriThe profile which the given values for the mime configuration will be applied.
mime_typeContent-Type configuration value. You can use NULL values for parameter. In the case the value is not, previous value is conserved.
transfer_encodingContent-Transfer-Encoding configuration value. You can use NULL values for parameter. In the case the value is not, previous value is conserved.
Returns
axl_true if the basic MIME configuration was done, otherwise axl_false is returned.

References vortex_hash_lookup().