Ext.SetContentType()

Sets the content type HTTP header for the output from a URL Direct access.

Function Signature

 void Ext.SetContentType( value )

Parameters

Parameter Type Description

value

string

The content-type value. ModScript always appends "; charset=UTF-8".

Return

Type Description

None

Technical Details

SBM ModScript version: 11.3.

Example

// set content type to "application/json; charset=UTF-8"
Ext.SetContentType("application/json");

Notes

Only used in the URL Direct context.

Related Topics

Extension Functions