ll.SetContentType(HTTPRequestID: uuid, ContentType: number) : ()
Set the media type of an LSL HTTP server response to ContentType. HTTPRequestID must be a valid http_request ID. ContentType must be one of the CONTENT_TYPE_* constants.
ll.SetContentType(uuid(<key>), 12)
{
"def": "func",
"desc": "Set the media type of an LSL HTTP server response to ContentType.\nHTTPRequestID must be a valid http_request ID. ContentType must be one of the CONTENT_TYPE_* constants.",
"energy": 10,
"sleep": 0,
"pure": false,
"link": "https://wiki.secondlife.com/wiki/LlSetContentType",
"name": "SetContentType",
"signatures": [
{
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
"()"
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "HTTPRequestID",
"desc": "A valid http_request() key",
"type": [
"uuid",
"string"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "ContentType",
"desc": "Media type to use with any following llHTTPResponse(HTTPRequestID, ...)",
"type": [
"integer",
"number"
],
"variadic": false,
"optional": false
}
]
}
]
}