Skip to content

llSetContentType

Function Syntax
void llSetContentType(
  1. key HTTPRequestID, // A valid http_request() key
  2. integer ContentType // Media type to use with any following llHTTPResponse(HTTPRequestID, ...)
);

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.