SBM ModScript Reference → Programming SBM ModScript → Extension Functions → Ext.SetContentType()
Sets the content type HTTP header for the output from a URL Direct access.
Parameter | Type | Description |
---|---|---|
value |
string |
The content-type value. ModScript always appends "; charset=UTF-8". |
Type | Description |
---|---|
None |
SBM ModScript version: 11.3.
// set content type to "application/json; charset=UTF-8" Ext.SetContentType("application/json");
Only used in the URL Direct context.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.