Skip to content

llSetContentType

function ll.SetContentType(HTTPRequestID: string, 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.

Parameters
HTTPRequestID (string)
A valid http_request() key
ContentType (number)
Media type to use with any following llHTTPResponse(HTTPRequestID, ...)

Add example usage here showing SLua/Luau syntax with ll.SetContentType().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.