Skip to content
lsl.devlsl.devLSL Dev

Constants in the HTTPContentType enum.

All constant groups

At a glance, from the LSL definitions
integer CONTENT_TYPE_ATOM = 4;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/atom+xml'.integer CONTENT_TYPE_FORM = 7;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/x-www-form-urlencoded'.integer CONTENT_TYPE_HTML = 1;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/html'.integer CONTENT_TYPE_JSON = 5;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/json'.integer CONTENT_TYPE_LLSD = 6;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/llsd+xml' (Linden Lab Structured Data).integer CONTENT_TYPE_RSS = 8;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/rss+xml'.integer CONTENT_TYPE_TEXT = 0;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/plain'.integer CONTENT_TYPE_XHTML = 3;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/xhtml+xml'.integer CONTENT_TYPE_XML = 2;  // Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/xml'.

Constants

ConstantTypeValueDescription
CONTENT_TYPE_ATOMinteger4Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/atom+xml'.
CONTENT_TYPE_FORMinteger7Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/x-www-form-urlencoded'.
CONTENT_TYPE_HTMLinteger1Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/html'. Only valid for embedded browsers on content owned by the viewer; falls back to 'text/plain' otherwise.
CONTENT_TYPE_JSONinteger5Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/json'.
CONTENT_TYPE_LLSDinteger6Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/llsd+xml' (Linden Lab Structured Data).
CONTENT_TYPE_RSSinteger8Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/rss+xml'.
CONTENT_TYPE_TEXTinteger0Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'text/plain'.
CONTENT_TYPE_XHTMLinteger3Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/xhtml+xml'.
CONTENT_TYPE_XMLinteger2Sets the 'Content-Type' header of subsequent LSL HTTP server responses via llHTTPResponse to 'application/xml'.

Used by