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>), 3.14)
{
"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,
"must_use": false,
"link": "https://wiki.secondlife.com/wiki/LlSetContentType",
"private": false,
"takesSelf": false,
"name": "SetContentType",
"signatures": [
{
"def": "signature",
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
{
"def": "simple",
"value": "()"
}
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "HTTPRequestID",
"desc": "A valid http_request() key",
"type": [
{
"def": "simple",
"value": "uuid"
},
{
"def": "simple",
"value": "string"
}
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "ContentType",
"desc": "Media type to use with any following llHTTPResponse(HTTPRequestID, ...)",
"type": [
{
"def": "simple",
"value": "number"
}
],
"variadic": false,
"optional": false
}
]
}
]
}